summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Alpha
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
commitaafeaef8c8c210e2df3108c0309403328a67bc60 (patch)
treeafd5e9d021c73890e68bde4fa066df9c01dfb248 /llvm/lib/Target/Alpha
parentfef6400f01b321178aecbdb7d17ef91a67aab7e4 (diff)
downloadbcm5719-llvm-aafeaef8c8c210e2df3108c0309403328a67bc60.tar.gz
bcm5719-llvm-aafeaef8c8c210e2df3108c0309403328a67bc60.zip
MachineInstr::setOpcode -> MachineInstr::setInstrDescriptor
llvm-svn: 32034
Diffstat (limited to 'llvm/lib/Target/Alpha')
-rw-r--r--llvm/lib/Target/Alpha/AlphaBranchSelector.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaBranchSelector.cpp b/llvm/lib/Target/Alpha/AlphaBranchSelector.cpp
index 55140e34e43..65bacb8a749 100644
--- a/llvm/lib/Target/Alpha/AlphaBranchSelector.cpp
+++ b/llvm/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()));
}
}
}
OpenPOWER on IntegriCloud