mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
IntelJITEventListener updates to fix breaks by recent changes to EngineBuilder and DIContext.
By Arch Robison. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216159 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -113,7 +113,7 @@ protected:
|
||||
|
||||
// Parse the bitcode...
|
||||
SMDiagnostic Err;
|
||||
TheModule = ParseIRFile(IRFile, Err, Context);
|
||||
std::unique_ptr<Module> TheModule(ParseIRFile(IRFile, Err, Context));
|
||||
if (!TheModule) {
|
||||
errs() << Err.getMessage();
|
||||
return;
|
||||
@@ -145,7 +145,7 @@ protected:
|
||||
|
||||
// Compile the IR
|
||||
std::string Error;
|
||||
TheJIT.reset(EngineBuilder(TheModule)
|
||||
TheJIT.reset(EngineBuilder(std::move(TheModule))
|
||||
.setEngineKind(EngineKind::JIT)
|
||||
.setErrorStr(&Error)
|
||||
.setJITMemoryManager(MemMgr)
|
||||
@@ -160,7 +160,6 @@ protected:
|
||||
}
|
||||
|
||||
LLVMContext Context; // Global ownership
|
||||
Module *TheModule; // Owned by ExecutionEngine.
|
||||
JITMemoryManager *JMM; // Owned by ExecutionEngine.
|
||||
std::unique_ptr<ExecutionEngine> TheJIT;
|
||||
|
||||
|
Reference in New Issue
Block a user