diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2019-08-07 10:57:25 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2019-08-07 10:57:25 +0000 |
commit | 3d5360a4398bfa6878f94ca9ac55bc568692c765 (patch) | |
tree | 8517d65dccdea329b5f6fa6eced147ed4c219371 /llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | |
parent | befde45a6f606429cadd1ea5d57679c1955ef2a8 (diff) | |
download | bcm5719-llvm-3d5360a4398bfa6878f94ca9ac55bc568692c765.tar.gz bcm5719-llvm-3d5360a4398bfa6878f94ca9ac55bc568692c765.zip |
Replace llvm::MutexGuard/UniqueLock with their standard equivalents
All supported platforms have <mutex> now, so we don't need our own
copies any longer. No functionality change intended.
llvm-svn: 368149
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index c3a2ccc582c..71b7f893d71 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp @@ -32,7 +32,6 @@ #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/Mutex.h" -#include "llvm/Support/UniqueLock.h" #include "llvm/Support/raw_ostream.h" #include <cassert> #include <cmath> @@ -41,6 +40,7 @@ #include <cstdio> #include <cstring> #include <map> +#include <mutex> #include <string> #include <utility> #include <vector> @@ -258,7 +258,7 @@ GenericValue Interpreter::callExternalFunction(Function *F, ArrayRef<GenericValue> ArgVals) { TheInterpreter = this; - unique_lock<sys::Mutex> Guard(*FunctionsLock); + std::unique_lock<sys::Mutex> Guard(*FunctionsLock); // Do a lookup to see if the function is in our cache... this should just be a // deferred annotation! |