eliminate the TargetInstrInfo::GetInstSizeInBytes hook.
[oota-llvm.git] / lib / Target / MSP430 / MSP430BranchSelector.cpp
index 68cb342b08f45dbc0ea9103e2eeb7b5d1c0b243e..350b6751182024b9e4bac0e0805f2b15b5b5d9ac 100644 (file)
@@ -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());