aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/MachineInstr.cpp2
-rw-r--r--lib/CodeGen/RegAlloc/PhyRegAlloc.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp
index 4e340d3439..6371d8dbc7 100644
--- a/lib/CodeGen/MachineInstr.cpp
+++ b/lib/CodeGen/MachineInstr.cpp
@@ -157,7 +157,7 @@ OutputReg(std::ostream &os, unsigned int regNum)
std::ostream &operator<<(std::ostream& os, const MachineInstr& minstr)
{
- os << TargetInstrDescriptors[minstr.opCode].opCodeString;
+ os << TargetInstrDescriptors[minstr.opCode].Name;
for (unsigned i=0, N=minstr.getNumOperands(); i < N; i++) {
os << "\t" << minstr.getOperand(i);
diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
index c569a29e8e..42698adc54 100644
--- a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
+++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
@@ -954,10 +954,10 @@ void PhyRegAlloc::printMachineCode()
// 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);