[llvm] Migrate llvm::make_unique to std::make_unique
Now that we've moved to C++14, we no longer need the llvm::make_unique
implementation from STLExtras.h. This patch is a mechanical replacement
of (hopefully) all the llvm::make_unique instances across the monorepo.
llvm-svn: 369013
diff --git a/llvm/unittests/ExecutionEngine/Orc/LegacyCompileOnDemandLayerTest.cpp b/llvm/unittests/ExecutionEngine/Orc/LegacyCompileOnDemandLayerTest.cpp
index 06b96f9..59cd11c 100644
--- a/llvm/unittests/ExecutionEngine/Orc/LegacyCompileOnDemandLayerTest.cpp
+++ b/llvm/unittests/ExecutionEngine/Orc/LegacyCompileOnDemandLayerTest.cpp
@@ -25,7 +25,7 @@
class DummyCallbackManager : public JITCompileCallbackManager {
public:
DummyCallbackManager(ExecutionSession &ES)
- : JITCompileCallbackManager(llvm::make_unique<DummyTrampolinePool>(), ES,
+ : JITCompileCallbackManager(std::make_unique<DummyTrampolinePool>(), ES,
0) {}
};
@@ -78,7 +78,7 @@
llvm::orc::LegacyCompileOnDemandLayer<decltype(TestBaseLayer)> COD(
AcknowledgeORCv1Deprecation, ES, TestBaseLayer, GetResolver, SetResolver,
[](Function &F) { return std::set<Function *>{&F}; }, CallbackMgr,
- [] { return llvm::make_unique<DummyStubsManager>(); }, true);
+ [] { return std::make_unique<DummyStubsManager>(); }, true);
auto Sym = COD.findSymbol("foo", true);