diff options
Diffstat (limited to 'llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h')
-rw-r--r-- | llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h index bf89d3b7597..e9999efd37a 100644 --- a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h +++ b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h @@ -48,11 +48,11 @@ private: public: KaleidoscopeJIT(JITTargetMachineBuilder JTMB, DataLayout DL) : ObjectLayer(ES, - []() { return llvm::make_unique<SectionMemoryManager>(); }), + []() { return std::make_unique<SectionMemoryManager>(); }), CompileLayer(ES, ObjectLayer, ConcurrentIRCompiler(std::move(JTMB))), OptimizeLayer(ES, CompileLayer, optimizeModule), DL(std::move(DL)), Mangle(ES, this->DL), - Ctx(llvm::make_unique<LLVMContext>()) { + Ctx(std::make_unique<LLVMContext>()) { ES.getMainJITDylib().addGenerator( cantFail(DynamicLibrarySearchGenerator::GetForCurrentProcess( DL.getGlobalPrefix()))); @@ -72,7 +72,7 @@ public: if (!DL) return DL.takeError(); - return llvm::make_unique<KaleidoscopeJIT>(std::move(*JTMB), std::move(*DL)); + return std::make_unique<KaleidoscopeJIT>(std::move(*JTMB), std::move(*DL)); } Error addModule(std::unique_ptr<Module> M) { @@ -89,7 +89,7 @@ private: optimizeModule(ThreadSafeModule TSM, const MaterializationResponsibility &R) { TSM.withModuleDo([](Module &M) { // Create a function pass manager. - auto FPM = llvm::make_unique<legacy::FunctionPassManager>(&M); + auto FPM = std::make_unique<legacy::FunctionPassManager>(&M); // Add some optimizations. FPM->add(createInstructionCombiningPass()); |