llvm.org GIT mirror llvm / 6c66c71
[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 Lang Hames 2 months ago
2 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
4646 DL(std::move(DL)), Mangle(ES, this->DL),
4747 Ctx(llvm::make_unique()) {
4848 ES.getMainJITDylib().setGenerator(
49 cantFail(DynamicLibrarySearchGenerator::GetForCurrentProcess(DL)));
49 cantFail(DynamicLibrarySearchGenerator::GetForCurrentProcess(
50 DL.getGlobalPrefix())));
5051 }
5152
5253 static Expected> Create() {
5353 DL(std::move(DL)), Mangle(ES, this->DL),
5454 Ctx(llvm::make_unique()) {
5555 ES.getMainJITDylib().setGenerator(
56 cantFail(DynamicLibrarySearchGenerator::GetForCurrentProcess(DL)));
56 cantFail(DynamicLibrarySearchGenerator::GetForCurrentProcess(
57 DL.getGlobalPrefix())));
5758 }
5859
5960 const DataLayout &getDataLayout() const { return DL; }