summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.cpp
diff options
context:
space:
mode:
authorRussell Gallop <russell.gallop@sony.com>2019-12-11 11:49:42 +0000
committerRussell Gallop <russell.gallop@sony.com>2019-12-11 14:32:21 +0000
commitdf494f7512b0ecebdf3d7be97695a1b6278c0336 (patch)
tree1a1fb995e8e8cbf3555babedfd30e0d1360ddbd1 /clang/lib/Sema/Sema.cpp
parentee219345881bdf2c144d40731f055e7b36bc8bce (diff)
downloadbcm5719-llvm-df494f7512b0ecebdf3d7be97695a1b6278c0336.tar.gz
bcm5719-llvm-df494f7512b0ecebdf3d7be97695a1b6278c0336.zip
[Support] Add TimeTraceScope constructor without detail arg
This simplifies code where no extra details are required Also don't write out detail when it is empty. Differential Revision: https://reviews.llvm.org/D71347
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r--clang/lib/Sema/Sema.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp
index 8d5972970fb..c5bf6fea3f3 100644
--- a/clang/lib/Sema/Sema.cpp
+++ b/clang/lib/Sema/Sema.cpp
@@ -924,8 +924,7 @@ void Sema::ActOnEndOfTranslationUnitFragment(TUFragmentKind Kind) {
}
{
- llvm::TimeTraceScope TimeScope("PerformPendingInstantiations",
- StringRef(""));
+ llvm::TimeTraceScope TimeScope("PerformPendingInstantiations");
PerformPendingInstantiations();
}
OpenPOWER on IntegriCloud