summaryrefslogtreecommitdiff
path: root/lib/Support/Timer.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2014-06-16 22:49:41 +0000
committerZachary Turner <zturner@google.com>2014-06-16 22:49:41 +0000
commit5ea46694d0b48eebcf04d9e1fc0dac6382356f32 (patch)
tree686459ef65febf5538b05e7f68c26f04c6a5d7c8 /lib/Support/Timer.cpp
parent298ff80849de645ab7afb92004759350309de400 (diff)
downloadllvm-5ea46694d0b48eebcf04d9e1fc0dac6382356f32.tar.gz
llvm-5ea46694d0b48eebcf04d9e1fc0dac6382356f32.tar.bz2
llvm-5ea46694d0b48eebcf04d9e1fc0dac6382356f32.tar.xz
Revert r211066, 211067, 211068, 211069, 211070.
These were committed accidentally from the wrong branch before having a review sign-off. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211072 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Timer.cpp')
-rw-r--r--lib/Support/Timer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Support/Timer.cpp b/lib/Support/Timer.cpp
index 7738283bad..61465ae5e8 100644
--- a/lib/Support/Timer.cpp
+++ b/lib/Support/Timer.cpp
@@ -18,7 +18,7 @@
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/ManagedStatic.h"
-#include "llvm/Support/MutexGuard.h"
+#include "llvm/Support/Mutex.h"
#include "llvm/Support/Process.h"
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
@@ -84,13 +84,14 @@ static TimerGroup *getDefaultTimerGroup() {
sys::MemoryFence();
if (tmp) return tmp;
- sys::SmartScopedLock<true> Lock(*TimerLock);
+ llvm_acquire_global_lock();
tmp = DefaultTimerGroup;
if (!tmp) {
tmp = new TimerGroup("Miscellaneous Ungrouped Timers");
sys::MemoryFence();
DefaultTimerGroup = tmp;
}
+ llvm_release_global_lock();
return tmp;
}