ExecutionEngine: update to reflect LLVM API changes
authorAlex Zinenko <zinenko@google.com>
Tue, 23 Apr 2019 09:31:59 +0000 (02:31 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Wed, 24 Apr 2019 05:02:41 +0000 (22:02 -0700)
    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

mlir/lib/ExecutionEngine/ExecutionEngine.cpp

index 0b7f3b6..ece17f3 100644 (file)
@@ -98,7 +98,7 @@ public:
         threadSafeCtx(llvm::make_unique<llvm::LLVMContext>()) {
     session.getMainJITDylib().setGenerator(
         cantFail(llvm::orc::DynamicLibrarySearchGenerator::GetForCurrentProcess(
-            layout)));
+            layout.getGlobalPrefix())));
   }
 
   // Create a JIT engine for the current host.