mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
Remove the *BIG UGLY HACK* from the JIT: PreSelection is now a FunctionPass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9790 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9bf06b155c
commit
cb93d8d3a9
@ -97,21 +97,6 @@ VM::VM(ModuleProvider *MP, TargetMachine *tm) : ExecutionEngine(MP), TM(*tm),
|
||||
|
||||
setupPassManager();
|
||||
|
||||
#ifdef ENABLE_SPARC_JIT
|
||||
// THIS GOES BEYOND UGLY HACKS
|
||||
if (TM.getName() == "UltraSparc-Native") {
|
||||
extern Pass *createPreSelectionPass(TargetMachine &TM);
|
||||
PassManager PM;
|
||||
// Specialize LLVM code for this target machine and then
|
||||
// run basic dataflow optimizations on LLVM code.
|
||||
PM.add(createPreSelectionPass(TM));
|
||||
// We cannot utilize function-at-a-time loading here because PreSelection
|
||||
// is a ModulePass.
|
||||
MP->materializeModule();
|
||||
PM.run(*MP->getModule());
|
||||
}
|
||||
#endif
|
||||
|
||||
emitGlobals();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user