diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-11-30 07:12:03 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-11-30 07:12:03 +0000 |
commit | 12a447898a3c68c1a9489f71b82650b46244d00a (patch) | |
tree | 55f4331c61aa2203038e1caa7a9c8c646384b2e0 /lib/Target/Alpha/AlphaBranchSelector.cpp | |
parent | 6430bf0449e0ff5e8d344d3107f4ef2306de80ad (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.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/Alpha/AlphaBranchSelector.cpp b/lib/Target/Alpha/AlphaBranchSelector.cpp index 55140e34e4..65bacb8a74 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())); } } } |