From a750422609eb5687f6f27d8908dda3a119622254 Mon Sep 17 00:00:00 2001 From: River Riddle Date: Wed, 19 Feb 2020 16:46:16 -0800 Subject: [PATCH] [mlir] Update usage of createJITDylib to createBareJITDylib after LLVM change A few tests are broken, but this allows for MLIR to build. --- mlir/lib/ExecutionEngine/ExecutionEngine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mlir/lib/ExecutionEngine/ExecutionEngine.cpp b/mlir/lib/ExecutionEngine/ExecutionEngine.cpp index a81ce82..bfe9954 100644 --- a/mlir/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/mlir/lib/ExecutionEngine/ExecutionEngine.cpp @@ -234,7 +234,7 @@ Expected> ExecutionEngine::create( auto dataLayout = deserModule->getDataLayout(); llvm::orc::JITDylib *mainJD = session.getJITDylibByName("
"); if (!mainJD) - mainJD = &session.createJITDylib("
"); + mainJD = &session.createBareJITDylib("
"); // Resolve symbols that are statically linked in the current process. mainJD->addGenerator( @@ -248,7 +248,7 @@ Expected> ExecutionEngine::create( errs() << "Fail to create MemoryBuffer for: " << libPath << "\n"; continue; } - auto &JD = session.createJITDylib(std::string(libPath)); + auto &JD = session.createBareJITDylib(std::string(libPath)); auto loaded = DynamicLibrarySearchGenerator::Load( libPath.data(), dataLayout.getGlobalPrefix()); if (!loaded) { -- 2.7.4