Use higher level methods, don't use TargetInstrDescriptors directly!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4389 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
index c569a29..42698ad 100644
--- a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
+++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
@@ -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);