diff options
-rw-r--r-- | include/llvm/Target/TargetInstrInfo.h | 5 | ||||
-rw-r--r-- | lib/Target/TargetInstrInfo.cpp | 4 |
2 files changed, 0 insertions, 9 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 4c0e1b8..00a0556 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -394,11 +394,6 @@ public: virtual bool PredicateInstruction(MachineInstr *MI, std::vector<MachineOperand> &Cond) const; - /// getBlockSize - Calculate the size of the specified MachineBasicBlock. - /// Note the result may not be 100% accurate especially if there are inline - /// asm's in the block. - virtual unsigned getBlockSize(MachineBasicBlock *MBB) const; - /// getPointerRegClass - Returns a TargetRegisterClass used for pointer /// values. virtual const TargetRegisterClass *getPointerRegClass() const { diff --git a/lib/Target/TargetInstrInfo.cpp b/lib/Target/TargetInstrInfo.cpp index 20f32a2..d141351 100644 --- a/lib/Target/TargetInstrInfo.cpp +++ b/lib/Target/TargetInstrInfo.cpp @@ -84,7 +84,3 @@ bool TargetInstrInfo::PredicateInstruction(MachineInstr *MI, } return MadeChange; } - -unsigned TargetInstrInfo::getBlockSize(MachineBasicBlock *MBB) const { - return (unsigned)std::distance(MBB->begin(), MBB->end()); -} |