Free machine code
authorChris Lattner <sabre@nondot.org>
Wed, 25 Dec 2002 05:06:21 +0000 (05:06 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 25 Dec 2002 05:06:21 +0000 (05:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5146 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86TargetMachine.cpp

index 18656af41383c766d2181100db7c6316ac3c7426..0fc56611f455e4493c7c319e0f9d123a306a1758 100644 (file)
@@ -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!
 }