mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
lli should only create memmgr when JITing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147969 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bf9ab932c1
commit
f6c22c6760
@ -193,8 +193,6 @@ int main(int argc, char **argv, char * const *envp) {
|
||||
}
|
||||
}
|
||||
|
||||
JITMemoryManager *JMM = JITMemoryManager::CreateDefaultMemManager();
|
||||
|
||||
EngineBuilder builder(Mod);
|
||||
builder.setMArch(MArch);
|
||||
builder.setMCPU(MCPU);
|
||||
@ -202,7 +200,7 @@ int main(int argc, char **argv, char * const *envp) {
|
||||
builder.setRelocationModel(RelocModel);
|
||||
builder.setCodeModel(CMModel);
|
||||
builder.setErrorStr(&ErrorMsg);
|
||||
builder.setJITMemoryManager(JMM);
|
||||
builder.setJITMemoryManager(ForceInterpreter ? 0 : JITMemoryManager::CreateDefaultMemManager());
|
||||
builder.setEngineKind(ForceInterpreter
|
||||
? EngineKind::Interpreter
|
||||
: EngineKind::JIT);
|
||||
|
Loading…
Reference in New Issue
Block a user