summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenAction.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/CodeGen/CodeGenAction.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/CodeGen/CodeGenAction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenAction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp
index 1fa1f621b35..7f3f358d3d9 100644
--- a/clang/lib/CodeGen/CodeGenAction.cpp
+++ b/clang/lib/CodeGen/CodeGenAction.cpp
@@ -249,7 +249,7 @@ namespace clang {
void HandleTranslationUnit(ASTContext &C) override {
{
- llvm::TimeTraceScope TimeScope("Frontend", StringRef(""));
+ llvm::TimeTraceScope TimeScope("Frontend");
PrettyStackTraceString CrashInfo("Per-file LLVM IR generation");
if (FrontendTimesIsEnabled) {
LLVMIRGenerationRefCount += 1;
OpenPOWER on IntegriCloud