[llvm-commits] CVS: llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Thu Mar 4 13:27:11 PST 2004


Changes in directory llvm/lib/Target/SparcV9:

SparcV9TargetMachine.cpp updated: 1.104 -> 1.105

---
Log message:

make -print-machineinstrs work for both SparcV9 and X86

---
Diffs of the changes:  (+4 -0)

Index: llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
diff -u llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp:1.104 llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp:1.105
--- llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp:1.104	Mon Mar  1 09:28:27 2004
+++ llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp	Thu Mar  4 13:16:23 2004
@@ -162,6 +162,10 @@
     PM.add(createInstructionSchedulingWithSSAPass(*this));
 
   PM.add(getRegisterAllocator(*this));
+
+  if (PrintMachineCode)
+    PM.add(createMachineFunctionPrinterPass(&std::cerr));
+
   PM.add(createPrologEpilogInsertionPass());
 
   if (!DisablePeephole)





More information about the llvm-commits mailing list