Remove. Not needed.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 17 May 2007 00:11:35 +0000 (00:11 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 17 May 2007 00:11:35 +0000 (00:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37139 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetInstrInfo.h
lib/Target/TargetInstrInfo.cpp

index 4c0e1b8e941d14c2dd98c5f04cf5ed7d8b927a4d..00a05569b95d8ff0478d4dcbc67d84b80e21816f 100644 (file)
@@ -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 {
index 20f32a2ad9bb341069311625582ed775866fae37..d1413510fff27578b3c7a5b1f6a08342fa12dd5e 100644 (file)
@@ -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());
-}