Skip to content

Commit 7c4eea6

Browse files
committed
[Timers] Avoid YAML-special characters in timer names.
1 parent 8d37812 commit 7c4eea6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/FrontendTool/FrontendTool.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ static bool performCompile(std::unique_ptr<CompilerInstance> &Instance,
599599
performSILLinking(SM.get(), true);
600600

601601
{
602-
SharedTimer timer("SIL verification (pre-optimization)");
602+
SharedTimer timer("SIL verification, pre-optimization");
603603
SM->verify();
604604
}
605605

@@ -626,7 +626,7 @@ static bool performCompile(std::unique_ptr<CompilerInstance> &Instance,
626626
}
627627

628628
{
629-
SharedTimer timer("SIL verification (post-optimization)");
629+
SharedTimer timer("SIL verification, post-optimization");
630630
SM->verify();
631631
}
632632

lib/Serialization/Serialization.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4525,7 +4525,7 @@ void swift::serialize(ModuleOrSourceFile DC,
45254525

45264526
bool hadError = withOutputFile(getContext(DC), options.OutputPath,
45274527
[&](raw_ostream &out) {
4528-
SharedTimer timer("Serialization (swiftmodule)");
4528+
SharedTimer timer("Serialization, swiftmodule");
45294529
Serializer::writeToStream(out, DC, M, options);
45304530
});
45314531
if (hadError)
@@ -4534,7 +4534,7 @@ void swift::serialize(ModuleOrSourceFile DC,
45344534
if (options.DocOutputPath && options.DocOutputPath[0] != '\0') {
45354535
(void)withOutputFile(getContext(DC), options.DocOutputPath,
45364536
[&](raw_ostream &out) {
4537-
SharedTimer timer("Serialization (swiftdoc)");
4537+
SharedTimer timer("Serialization, swiftdoc");
45384538
Serializer::writeDocToStream(out, DC, options.GroupInfoPath,
45394539
getContext(DC));
45404540
});

0 commit comments

Comments
 (0)