summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/GlobalModuleIndex.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/Serialization/GlobalModuleIndex.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/Serialization/GlobalModuleIndex.cpp')
-rw-r--r--clang/lib/Serialization/GlobalModuleIndex.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Serialization/GlobalModuleIndex.cpp b/clang/lib/Serialization/GlobalModuleIndex.cpp
index dddee771da3..89a1c6cb8e6 100644
--- a/clang/lib/Serialization/GlobalModuleIndex.cpp
+++ b/clang/lib/Serialization/GlobalModuleIndex.cpp
@@ -134,7 +134,7 @@ GlobalModuleIndex::GlobalModuleIndex(std::unique_ptr<llvm::MemoryBuffer> Buffer,
"' failed: " + toString(std::move(Err)));
};
- llvm::TimeTraceScope TimeScope("Module LoadIndex", StringRef(""));
+ llvm::TimeTraceScope TimeScope("Module LoadIndex");
// Read the global index.
bool InGlobalIndexBlock = false;
bool Done = false;
@@ -770,7 +770,7 @@ bool GlobalModuleIndexBuilder::writeIndex(llvm::BitstreamWriter &Stream) {
}
using namespace llvm;
- llvm::TimeTraceScope TimeScope("Module WriteIndex", StringRef(""));
+ llvm::TimeTraceScope TimeScope("Module WriteIndex");
// Emit the file header.
Stream.Emit((unsigned)'B', 8);
OpenPOWER on IntegriCloud