aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SparcV9
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/Target/SparcV9
parent4683f9bfb4dc2f5557e8a7a229912e7f2ed366ca (diff)
downloadexternal_llvm-d9512caca8ec1e5488cdc94b34986c8ab2d447bb.zip
external_llvm-d9512caca8ec1e5488cdc94b34986c8ab2d447bb.tar.gz
external_llvm-d9512caca8ec1e5488cdc94b34986c8ab2d447bb.tar.bz2
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/Target/SparcV9')
-rw-r--r--lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
index c569a29..42698ad 100644
--- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
+++ b/lib/Target/SparcV9/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);