aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-29 17:35:39 +0000
committerChris Lattner <sabre@nondot.org>2002-10-29 17:35:39 +0000
commitd9512caca8ec1e5488cdc94b34986c8ab2d447bb (patch)
treeae1cf4bb0b6eeaebbaf18cf5f9708c818d74e7a1 /lib/CodeGen
parent4683f9bfb4dc2f5557e8a7a229912e7f2ed366ca (diff)
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
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);