diff options
author | Russell Gallop <russell.gallop@sony.com> | 2019-12-11 11:49:42 +0000 |
---|---|---|
committer | Russell Gallop <russell.gallop@sony.com> | 2019-12-11 14:32:21 +0000 |
commit | df494f7512b0ecebdf3d7be97695a1b6278c0336 (patch) | |
tree | 1a1fb995e8e8cbf3555babedfd30e0d1360ddbd1 /clang/lib/Parse/ParseAST.cpp | |
parent | ee219345881bdf2c144d40731f055e7b36bc8bce (diff) | |
download | bcm5719-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/Parse/ParseAST.cpp')
-rw-r--r-- | clang/lib/Parse/ParseAST.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseAST.cpp b/clang/lib/Parse/ParseAST.cpp index 3efd893e499..01510e8caf3 100644 --- a/clang/lib/Parse/ParseAST.cpp +++ b/clang/lib/Parse/ParseAST.cpp @@ -151,7 +151,7 @@ void clang::ParseAST(Sema &S, bool PrintStats, bool SkipFunctionBodies) { bool HaveLexer = S.getPreprocessor().getCurrentLexer(); if (HaveLexer) { - llvm::TimeTraceScope TimeScope("Frontend", StringRef("")); + llvm::TimeTraceScope TimeScope("Frontend"); P.Initialize(); Parser::DeclGroupPtrTy ADecl; for (bool AtEOF = P.ParseFirstTopLevelDecl(ADecl); !AtEOF; |