diff options
| -rw-r--r-- | llvm/include/llvm/Target/TargetInstrInfo.h | 7 | ||||
| -rw-r--r-- | llvm/lib/Target/ARM/ARMBaseInstrInfo.h | 2 | ||||
| -rw-r--r-- | llvm/lib/Target/ARM/ARMConstantIslandPass.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/MSP430/MSP430BranchSelector.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCBranchSelector.cpp | 2 | 
5 files changed, 5 insertions, 12 deletions
diff --git a/llvm/include/llvm/Target/TargetInstrInfo.h b/llvm/include/llvm/Target/TargetInstrInfo.h index 6609e2aa32a..d5fe33ff88c 100644 --- a/llvm/include/llvm/Target/TargetInstrInfo.h +++ b/llvm/include/llvm/Target/TargetInstrInfo.h @@ -566,13 +566,6 @@ public:                                      const MachineBasicBlock *MBB,                                      const MachineFunction &MF) const = 0; -  /// GetInstSize - Returns the size of the specified Instruction. -  ///  -  virtual unsigned GetInstSizeInBytes(const MachineInstr *MI) const { -    assert(0 && "Target didn't implement TargetInstrInfo::GetInstSize!"); -    return 0; -  } -    /// Measure the specified inline asm to determine an approximation of its    /// length.    virtual unsigned getInlineAsmLength(const char *Str, diff --git a/llvm/lib/Target/ARM/ARMBaseInstrInfo.h b/llvm/lib/Target/ARM/ARMBaseInstrInfo.h index 31615cc89f6..20fae2e54ee 100644 --- a/llvm/lib/Target/ARM/ARMBaseInstrInfo.h +++ b/llvm/lib/Target/ARM/ARMBaseInstrInfo.h @@ -224,7 +224,7 @@ public:    virtual bool AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,                               MachineBasicBlock *&FBB,                               SmallVectorImpl<MachineOperand> &Cond, -                             bool AllowModify) const; +                             bool AllowModify = false) const;    virtual unsigned RemoveBranch(MachineBasicBlock &MBB) const;    virtual unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,                                  MachineBasicBlock *FBB, diff --git a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp index 50ba0d1760b..00296ee7bcb 100644 --- a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp +++ b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp @@ -165,7 +165,7 @@ namespace {      /// HasInlineAsm - True if the function contains inline assembly.      bool HasInlineAsm; -    const TargetInstrInfo *TII; +    const ARMInstrInfo *TII;      const ARMSubtarget *STI;      ARMFunctionInfo *AFI;      bool isThumb; @@ -272,7 +272,7 @@ FunctionPass *llvm::createARMConstantIslandPass() {  bool ARMConstantIslands::runOnMachineFunction(MachineFunction &MF) {    MachineConstantPool &MCP = *MF.getConstantPool(); -  TII = MF.getTarget().getInstrInfo(); +  TII = (const ARMInstrInfo*)MF.getTarget().getInstrInfo();    AFI = MF.getInfo<ARMFunctionInfo>();    STI = &MF.getTarget().getSubtarget<ARMSubtarget>(); diff --git a/llvm/lib/Target/MSP430/MSP430BranchSelector.cpp b/llvm/lib/Target/MSP430/MSP430BranchSelector.cpp index 68cb342b08f..350b6751182 100644 --- a/llvm/lib/Target/MSP430/MSP430BranchSelector.cpp +++ b/llvm/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()); 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());  | 

