From: Alex Zinenko Date: Tue, 23 Apr 2019 09:31:59 +0000 (-0700) Subject: ExecutionEngine: update to reflect LLVM API changes X-Git-Tag: llvmorg-11-init~1466^2~1897 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea86e7652e88600cceb45d2113082fbfcf7e78dd;p=platform%2Fupstream%2Fllvm.git ExecutionEngine: update to reflect LLVM API changes LLVM Orc JIT changed the API for DynamicLibrarySearchGenerator:: GetForCurrentProcess to only take one value of the DataLayout that it actually uses instead of the whole data layout. Update MLIR ExecutionEngine call to this function accordingly. -- PiperOrigin-RevId: 244820235 --- diff --git a/mlir/lib/ExecutionEngine/ExecutionEngine.cpp b/mlir/lib/ExecutionEngine/ExecutionEngine.cpp index 0b7f3b6..ece17f3 100644 --- a/mlir/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/mlir/lib/ExecutionEngine/ExecutionEngine.cpp @@ -98,7 +98,7 @@ public: threadSafeCtx(llvm::make_unique()) { session.getMainJITDylib().setGenerator( cantFail(llvm::orc::DynamicLibrarySearchGenerator::GetForCurrentProcess( - layout))); + layout.getGlobalPrefix()))); } // Create a JIT engine for the current host.