diff options
| author | Alex Zinenko <zinenko@google.com> | 2019-04-23 02:31:59 -0700 |
|---|---|---|
| committer | Mehdi Amini <joker.eph@gmail.com> | 2019-04-23 22:02:41 -0700 |
| commit | ea86e7652e88600cceb45d2113082fbfcf7e78dd (patch) | |
| tree | d147b7ca5d0a075154c7246b5b9fe8de437477e7 /mlir/lib/ExecutionEngine | |
| parent | 017cf6c7b8070254cded55831ce10426f761672b (diff) | |
| download | bcm5719-llvm-ea86e7652e88600cceb45d2113082fbfcf7e78dd.tar.gz bcm5719-llvm-ea86e7652e88600cceb45d2113082fbfcf7e78dd.zip | |
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
Diffstat (limited to 'mlir/lib/ExecutionEngine')
| -rw-r--r-- | mlir/lib/ExecutionEngine/ExecutionEngine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/ExecutionEngine/ExecutionEngine.cpp b/mlir/lib/ExecutionEngine/ExecutionEngine.cpp index 0b7f3b69d41..ece17f3dca6 100644 --- a/mlir/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/mlir/lib/ExecutionEngine/ExecutionEngine.cpp @@ -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. |

