[Support] Add TimeTraceScope constructor without detail arg
authorRussell Gallop <russell.gallop@sony.com>
Wed, 11 Dec 2019 11:49:42 +0000 (11:49 +0000)
committerRussell Gallop <russell.gallop@sony.com>
Wed, 11 Dec 2019 14:32:21 +0000 (14:32 +0000)
commitdf494f7512b0ecebdf3d7be97695a1b6278c0336
tree1a1fb995e8e8cbf3555babedfd30e0d1360ddbd1
parentee219345881bdf2c144d40731f055e7b36bc8bce
[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
clang/lib/CodeGen/BackendUtil.cpp
clang/lib/CodeGen/CodeGenAction.cpp
clang/lib/Parse/ParseAST.cpp
clang/lib/Sema/Sema.cpp
clang/lib/Serialization/GlobalModuleIndex.cpp
clang/tools/driver/cc1_main.cpp
llvm/include/llvm/Support/TimeProfiler.h
llvm/lib/Support/TimeProfiler.cpp