mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:19:43 +00:00
[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. llvm-svn: 358820
This commit is contained in:
parent
6dfb930f8e
commit
14f7b1d72a
@ -47,7 +47,8 @@ public:
|
||||
DL(std::move(DL)), Mangle(ES, this->DL),
|
||||
Ctx(llvm::make_unique<LLVMContext>()) {
|
||||
ES.getMainJITDylib().setGenerator(
|
||||
cantFail(DynamicLibrarySearchGenerator::GetForCurrentProcess(DL)));
|
||||
cantFail(DynamicLibrarySearchGenerator::GetForCurrentProcess(
|
||||
DL.getGlobalPrefix())));
|
||||
}
|
||||
|
||||
static Expected<std::unique_ptr<KaleidoscopeJIT>> Create() {
|
||||
|
@ -54,7 +54,8 @@ public:
|
||||
DL(std::move(DL)), Mangle(ES, this->DL),
|
||||
Ctx(llvm::make_unique<LLVMContext>()) {
|
||||
ES.getMainJITDylib().setGenerator(
|
||||
cantFail(DynamicLibrarySearchGenerator::GetForCurrentProcess(DL)));
|
||||
cantFail(DynamicLibrarySearchGenerator::GetForCurrentProcess(
|
||||
DL.getGlobalPrefix())));
|
||||
}
|
||||
|
||||
const DataLayout &getDataLayout() const { return DL; }
|
||||
|
Loading…
Reference in New Issue
Block a user