mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
ExceptionDemo: Corresponding to r181820, SectionMemoryManager should belong to RTDyldMemoryManager.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181844 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ebb9f17240
commit
3c2b0e171f
@ -1959,14 +1959,14 @@ int main(int argc, char *argv[]) {
|
||||
// Make the module, which holds all the code.
|
||||
llvm::Module *module = new llvm::Module("my cool jit", context);
|
||||
|
||||
llvm::JITMemoryManager *MemMgr = new llvm::SectionMemoryManager();
|
||||
llvm::RTDyldMemoryManager *MemMgr = new llvm::SectionMemoryManager();
|
||||
|
||||
// Build engine with JIT
|
||||
llvm::EngineBuilder factory(module);
|
||||
factory.setEngineKind(llvm::EngineKind::JIT);
|
||||
factory.setAllocateGVsWithCode(false);
|
||||
factory.setTargetOptions(Opts);
|
||||
factory.setJITMemoryManager(MemMgr);
|
||||
factory.setMCJITMemoryManager(MemMgr);
|
||||
factory.setUseMCJIT(true);
|
||||
llvm::ExecutionEngine *executionEngine = factory.create();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user