mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-05 13:09:10 +00:00
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
This commit is contained in:
parent
4683f9bfb4
commit
d9512caca8
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user