diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-11-07 20:32:08 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-11-07 20:32:08 +0000 |
commit | cb93d8d3a9573917593d56b9a333ded088751b70 (patch) | |
tree | 3bcb6d327392c5304ed7ced0bd84370f29a3f733 /lib/ExecutionEngine | |
parent | 9bf06b155c3e158ac405d2df0f1b9c9c5b387311 (diff) | |
download | external_llvm-cb93d8d3a9573917593d56b9a333ded088751b70.zip external_llvm-cb93d8d3a9573917593d56b9a333ded088751b70.tar.gz external_llvm-cb93d8d3a9573917593d56b9a333ded088751b70.tar.bz2 |
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
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/JIT/JIT.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/ExecutionEngine/JIT/JIT.cpp b/lib/ExecutionEngine/JIT/JIT.cpp index 6b14bb0..b5a1c78 100644 --- a/lib/ExecutionEngine/JIT/JIT.cpp +++ b/lib/ExecutionEngine/JIT/JIT.cpp @@ -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(); } |