MachineInstr::setOpcode -> MachineInstr::setInstrDescriptor

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32034 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng
2006-11-30 07:12:03 +00:00
parent 6430bf0449
commit 12a447898a
4 changed files with 40 additions and 36 deletions
+2 -1
View File
@@ -53,7 +53,8 @@ bool AlphaBSel::runOnMachineFunction(MachineFunction &Fn) {
// 0. bc opcode
// 1. reg
// 2. target MBB
MBBI->setOpcode(MBBI->getOperand(0).getImm());
const TargetInstrInfo *TII = Fn.getTarget().getInstrInfo();
MBBI->setInstrDescriptor(TII->get(MBBI->getOperand(0).getImm()));
}
}
}