summaryrefslogtreecommitdiff
path: root/lib/Target/Alpha/AlphaBranchSelector.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-11-30 07:12:03 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-11-30 07:12:03 +0000
commit12a447898a3c68c1a9489f71b82650b46244d00a (patch)
tree55f4331c61aa2203038e1caa7a9c8c646384b2e0 /lib/Target/Alpha/AlphaBranchSelector.cpp
parent6430bf0449e0ff5e8d344d3107f4ef2306de80ad (diff)
MachineInstr::setOpcode -> MachineInstr::setInstrDescriptor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32034 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaBranchSelector.cpp')
-rw-r--r--lib/Target/Alpha/AlphaBranchSelector.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/Alpha/AlphaBranchSelector.cpp b/lib/Target/Alpha/AlphaBranchSelector.cpp
index 55140e34e43..65bacb8a749 100644
--- a/lib/Target/Alpha/AlphaBranchSelector.cpp
+++ b/lib/Target/Alpha/AlphaBranchSelector.cpp
@@ -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()));
}
}
}