From: Lang Hames Date: Sat, 20 Apr 2019 17:35:28 +0000 (+0000) Subject: [JITLink] Update BuildingAJIT tutorials to account for API changes in r358818. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c66c715b13253822f509eed74f4deafa4d31db7;p=llvm [JITLink] Update BuildingAJIT tutorials to account for API changes in r358818. DynamicLibrarySearchGenerator::GetForCurrentProcess now takes a char (the global prefix) rather than a DataLayout reference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358820 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/examples/Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h b/examples/Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h index 25535bff432..643f65ad3b6 100644 --- a/examples/Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h +++ b/examples/Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h @@ -47,7 +47,8 @@ public: DL(std::move(DL)), Mangle(ES, this->DL), Ctx(llvm::make_unique()) { ES.getMainJITDylib().setGenerator( - cantFail(DynamicLibrarySearchGenerator::GetForCurrentProcess(DL))); + cantFail(DynamicLibrarySearchGenerator::GetForCurrentProcess( + DL.getGlobalPrefix()))); } static Expected> Create() { diff --git a/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h b/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h index 783ef7399f5..1b04cfbdd27 100644 --- a/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h +++ b/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h @@ -54,7 +54,8 @@ public: DL(std::move(DL)), Mangle(ES, this->DL), Ctx(llvm::make_unique()) { ES.getMainJITDylib().setGenerator( - cantFail(DynamicLibrarySearchGenerator::GetForCurrentProcess(DL))); + cantFail(DynamicLibrarySearchGenerator::GetForCurrentProcess( + DL.getGlobalPrefix()))); } const DataLayout &getDataLayout() const { return DL; }