aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86TargetMachine.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-25 05:06:21 +0000
committerChris Lattner <sabre@nondot.org>2002-12-25 05:06:21 +0000
commit430cda74528c50c50c4c2017895a75dcd37df773 (patch)
tree3d58cf953d789e6e93b1105ed99426997dd460a7 /lib/Target/X86/X86TargetMachine.cpp
parentff863ba610cd577e8589fbc94b2fc00d74f8294a (diff)
Free machine code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5146 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r--lib/Target/X86/X86TargetMachine.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp
index 18656af413..0fc56611f4 100644
--- a/lib/Target/X86/X86TargetMachine.cpp
+++ b/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!
}