summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial/BuildingAJIT1.rst
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/docs/tutorial/BuildingAJIT1.rst')
-rw-r--r--llvm/docs/tutorial/BuildingAJIT1.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/docs/tutorial/BuildingAJIT1.rst b/llvm/docs/tutorial/BuildingAJIT1.rst
index fcb755bd286..00ad94aa08a 100644
--- a/llvm/docs/tutorial/BuildingAJIT1.rst
+++ b/llvm/docs/tutorial/BuildingAJIT1.rst
@@ -138,10 +138,10 @@ usual include guards and #includes [2]_, we get to the definition of our class:
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))),
DL(std::move(DL)), Mangle(ES, this->DL),
- Ctx(llvm::make_unique<LLVMContext>()) {
+ Ctx(std::make_unique<LLVMContext>()) {
ES.getMainJITDylib().setGenerator(
cantFail(DynamicLibrarySearchGenerator::GetForCurrentProcess(DL)));
}
@@ -195,7 +195,7 @@ REPL process as well. We do this by attaching a
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));
}
const DataLayout &getDataLayout() const { return DL; }
OpenPOWER on IntegriCloud