[llvm-commits] CVS: llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Oct 29 11:36:03 PST 2002
Changes in directory llvm/lib/CodeGen/RegAlloc:
PhyRegAlloc.cpp updated: 1.86 -> 1.87
---
Log message:
Use higher level methods, don't use TargetInstrDescriptors directly!
---
Diffs of the changes:
Index: llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
diff -u llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.86 llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.87
--- llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.86 Tue Oct 29 10:51:05 2002
+++ llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp Tue Oct 29 11:35:37 2002
@@ -954,10 +954,10 @@
// iterate over all the machine instructions in BB
for ( ; MII != MBB.end(); ++MII) {
- MachineInstr *const MInst = *MII;
+ MachineInstr *MInst = *MII;
cerr << "\n\t";
- cerr << TargetInstrDescriptors[MInst->getOpCode()].opCodeString;
+ cerr << TM.getInstrInfo().getName(MInst->getOpCode());
for (unsigned OpNum=0; OpNum < MInst->getNumOperands(); ++OpNum) {
MachineOperand& Op = MInst->getOperand(OpNum);
More information about the llvm-commits
mailing list