diff options
Diffstat (limited to 'llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp')
-rw-r--r-- | llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp b/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp index 440b840faaa..ecb8cf65393 100644 --- a/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp +++ b/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp @@ -54,7 +54,7 @@ static bool testSetProcessAllSections(std::unique_ptr<MemoryBuffer> Obj, auto Foo = ES.intern("foo"); RTDyldObjectLinkingLayer ObjLayer(ES, [&DebugSectionSeen]() { - return llvm::make_unique<MemoryManagerWrapper>(DebugSectionSeen); + return std::make_unique<MemoryManagerWrapper>(DebugSectionSeen); }); auto OnResolveDoNothing = [](Expected<SymbolMap> R) { @@ -71,7 +71,7 @@ static bool testSetProcessAllSections(std::unique_ptr<MemoryBuffer> Obj, TEST(RTDyldObjectLinkingLayerTest, TestSetProcessAllSections) { LLVMContext Context; - auto M = llvm::make_unique<Module>("", Context); + auto M = std::make_unique<Module>("", Context); M->setTargetTriple("x86_64-unknown-linux-gnu"); Type *Int32Ty = IntegerType::get(Context, 32); GlobalVariable *GV = @@ -123,7 +123,7 @@ TEST(RTDyldObjectLinkingLayerTest, TestOverrideObjectFlags) { }; // Create a module with two void() functions: foo and bar. - ThreadSafeContext TSCtx(llvm::make_unique<LLVMContext>()); + ThreadSafeContext TSCtx(std::make_unique<LLVMContext>()); ThreadSafeModule M; { ModuleBuilder MB(*TSCtx.getContext(), TM->getTargetTriple().str(), "dummy"); @@ -153,7 +153,7 @@ TEST(RTDyldObjectLinkingLayerTest, TestOverrideObjectFlags) { auto &JD = ES.createJITDylib("main"); auto Foo = ES.intern("foo"); RTDyldObjectLinkingLayer ObjLayer( - ES, []() { return llvm::make_unique<SectionMemoryManager>(); }); + ES, []() { return std::make_unique<SectionMemoryManager>(); }); IRCompileLayer CompileLayer(ES, ObjLayer, FunkySimpleCompiler(*TM)); ObjLayer.setOverrideObjectFlagsWithResponsibilityFlags(true); @@ -196,7 +196,7 @@ TEST(RTDyldObjectLinkingLayerTest, TestAutoClaimResponsibilityForSymbols) { }; // Create a module with two void() functions: foo and bar. - ThreadSafeContext TSCtx(llvm::make_unique<LLVMContext>()); + ThreadSafeContext TSCtx(std::make_unique<LLVMContext>()); ThreadSafeModule M; { ModuleBuilder MB(*TSCtx.getContext(), TM->getTargetTriple().str(), "dummy"); @@ -218,7 +218,7 @@ TEST(RTDyldObjectLinkingLayerTest, TestAutoClaimResponsibilityForSymbols) { auto &JD = ES.createJITDylib("main"); auto Foo = ES.intern("foo"); RTDyldObjectLinkingLayer ObjLayer( - ES, []() { return llvm::make_unique<SectionMemoryManager>(); }); + ES, []() { return std::make_unique<SectionMemoryManager>(); }); IRCompileLayer CompileLayer(ES, ObjLayer, FunkySimpleCompiler(*TM)); ObjLayer.setAutoClaimResponsibilityForObjectSymbols(true); |