[llvm-commits] CVS: llvm/lib/Target/X86/X86TargetMachine.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Dec 24 23:07:00 PST 2002


Changes in directory llvm/lib/Target/X86:

X86TargetMachine.cpp updated: 1.9 -> 1.10

---
Log message:

Free machine code


---
Diffs of the changes:

Index: llvm/lib/Target/X86/X86TargetMachine.cpp
diff -u llvm/lib/Target/X86/X86TargetMachine.cpp:1.9 llvm/lib/Target/X86/X86TargetMachine.cpp:1.10
--- llvm/lib/Target/X86/X86TargetMachine.cpp:1.9	Mon Dec 23 18:04:01 2002
+++ llvm/lib/Target/X86/X86TargetMachine.cpp	Tue Dec 24 23:06:21 2002
@@ -64,12 +64,10 @@
   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!
 }





More information about the llvm-commits mailing list