summaryrefslogtreecommitdiff
path: root/llvm/lib
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2020-03-18 18:20:05 +0000
committerDimitry Andric <dim@FreeBSD.org>2020-03-18 18:20:05 +0000
commit2fc9bb9ce23aec06620745773d24e59944b87ffc (patch)
tree0726fa11e6594591f34578ba035ea82a69fc0393 /llvm/lib
parentd652fd2996ce31dfd35dd2a9c58bf051ca7fff44 (diff)
Notes
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Support/Timer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Support/Timer.cpp b/llvm/lib/Support/Timer.cpp
index 613d2eaae6d3..2d3d00812826 100644
--- a/llvm/lib/Support/Timer.cpp
+++ b/llvm/lib/Support/Timer.cpp
@@ -441,3 +441,7 @@ const char *TimerGroup::printAllJSONValues(raw_ostream &OS, const char *delim) {
void TimerGroup::ConstructTimerLists() {
(void)*NamedGroupedTimers;
}
+
+std::unique_ptr<TimerGroup> TimerGroup::aquireDefaultGroup() {
+ return std::unique_ptr<TimerGroup>(DefaultTimerGroup.claim());
+}