aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/MSP430
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
commit657d57f6e9b901063b609757eb027514f3aa1fc5 (patch)
tree4935a2bccb99209e7e5522b978487eeb746435a8 /lib/Target/MSP430
parentb903e30fd456a9dc86eceeb5c5910f2ba37fd486 (diff)
downloadexternal_llvm-657d57f6e9b901063b609757eb027514f3aa1fc5.zip
external_llvm-657d57f6e9b901063b609757eb027514f3aa1fc5.tar.gz
external_llvm-657d57f6e9b901063b609757eb027514f3aa1fc5.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109171 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430')
-rw-r--r--lib/Target/MSP430/MSP430BranchSelector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/MSP430/MSP430BranchSelector.cpp b/lib/Target/MSP430/MSP430BranchSelector.cpp
index 68cb342..350b675 100644
--- a/lib/Target/MSP430/MSP430BranchSelector.cpp
+++ b/lib/Target/MSP430/MSP430BranchSelector.cpp
@@ -52,7 +52,7 @@ FunctionPass *llvm::createMSP430BranchSelectionPass() {
}
bool MSP430BSel::runOnMachineFunction(MachineFunction &Fn) {
- const TargetInstrInfo *TII = Fn.getTarget().getInstrInfo();
+ const MSP430InstrInfo *TII = (MSP430InstrInfo*)Fn.getTarget().getInstrInfo();
// Give the blocks of the function a dense, in-order, numbering.
Fn.RenumberBlocks();
BlockSizes.resize(Fn.getNumBlockIDs());