aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-04-23 18:26:03 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-04-23 18:26:03 +0000
commitb013f5094c3bdb36472da996d63d5c0f75b6d4d3 (patch)
treed0daa89a4b526fd9f56eb726aef34a5bc04d6d5d /lib/CodeGen/LLVMTargetMachine.cpp
parent0e9ddde1cf6aa61de3f029d6d8866d0e638312ff (diff)
downloadexternal_llvm-b013f5094c3bdb36472da996d63d5c0f75b6d4d3.tar.gz
external_llvm-b013f5094c3bdb36472da996d63d5c0f75b6d4d3.tar.bz2
external_llvm-b013f5094c3bdb36472da996d63d5c0f75b6d4d3.zip
Unbreak JIT
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50173 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r--lib/CodeGen/LLVMTargetMachine.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp
index 3927eee503..4004cf1e18 100644
--- a/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/lib/CodeGen/LLVMTargetMachine.cpp
@@ -224,6 +224,10 @@ bool LLVMTargetMachine::addPassesToEmitMachineCode(PassManagerBase &PM,
if (EnableSinking)
PM.add(createMachineSinkingPass());
+ // Run pre-ra passes.
+ if (addPreRegAlloc(PM, Fast) && PrintMachineCode)
+ PM.add(createMachineFunctionPrinterPass(cerr));
+
// Perform register allocation to convert to a concrete x86 representation
PM.add(createRegisterAllocator());