summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-07-22 21:27:00 +0000
committerChris Lattner <sabre@nondot.org>2010-07-22 21:27:00 +0000
commit749ca32da1aa2be778647576037a4ab716345c3c (patch)
tree292c7a72d9d8533d156936a7daf62ae8282d53fe /llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
parent775f9f9919c658967a1f5c32c6466d8c824b9442 (diff)
downloadbcm5719-llvm-749ca32da1aa2be778647576037a4ab716345c3c.tar.gz
bcm5719-llvm-749ca32da1aa2be778647576037a4ab716345c3c.zip
eliminate the TargetInstrInfo::GetInstSizeInBytes hook.
ARM/PPC/MSP430-specific code (which are the only targets that implement the hook) can directly reference their target-specific instrinfo classes. llvm-svn: 109171
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCBranchSelector.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCBranchSelector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp b/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
index 52948c868b9..ab251e6b330 100644
--- a/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
+++ b/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
@@ -53,7 +53,7 @@ FunctionPass *llvm::createPPCBranchSelectionPass() {
}
bool PPCBSel::runOnMachineFunction(MachineFunction &Fn) {
- const TargetInstrInfo *TII = Fn.getTarget().getInstrInfo();
+ const PPCInstrInfo *TII = (PPCInstrInfo*)Fn.getTarget().getInstrInfo();
// Give the blocks of the function a dense, in-order, numbering.
Fn.RenumberBlocks();
BlockSizes.resize(Fn.getNumBlockIDs());
OpenPOWER on IntegriCloud