summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitccbf3d01f031011c47a60eebc94580d9251ae272 (patch)
tree549b23618973ee1dc18cb980ac6860660e45ceba /llvm/lib/Support/Timer.cpp
parentff7d1f4af7bbfaaf2309a5a6cff1e8f82317ff30 (diff)
downloadbcm5719-llvm-ccbf3d01f031011c47a60eebc94580d9251ae272.tar.gz
bcm5719-llvm-ccbf3d01f031011c47a60eebc94580d9251ae272.zip
Revert r211066, 211067, 211068, 211069, 211070.
These were committed accidentally from the wrong branch before having a review sign-off. llvm-svn: 211072
Diffstat (limited to 'llvm/lib/Support/Timer.cpp')
-rw-r--r--llvm/lib/Support/Timer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Support/Timer.cpp b/llvm/lib/Support/Timer.cpp
index 7738283bad0..61465ae5e8b 100644
--- a/llvm/lib/Support/Timer.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud