summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86TargetMachine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r--llvm/lib/Target/X86/X86TargetMachine.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/Target/X86/X86TargetMachine.cpp b/llvm/lib/Target/X86/X86TargetMachine.cpp
index 18656af4138..0fc56611f45 100644
--- a/llvm/lib/Target/X86/X86TargetMachine.cpp
+++ b/llvm/lib/Target/X86/X86TargetMachine.cpp
@@ -64,13 +64,11 @@ bool X86TargetMachine::addPassesToJITCompile(PassManager &PM) {
else
PM.add(createLocalRegisterAllocator(*this));
- // Print the instruction selected machine code...
- // PM.add(createMachineFunctionPrinterPass());
-
- // Print the register-allocated code
- if (PrintCode)
+ if (PrintCode) // Print the register-allocated code
PM.add(createX86CodePrinterPass(*this, std::cerr));
+ PM.add(createMachineCodeDestructionPass());
+
return false; // success!
}
OpenPOWER on IntegriCloud