From d9e9efb253978ce4a3683085d1f75c5734143bf9 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 17 May 2007 00:11:35 +0000 Subject: [PATCH] Remove. Not needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37139 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetInstrInfo.h | 5 ----- lib/Target/TargetInstrInfo.cpp | 4 ---- 2 files changed, 9 deletions(-) diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 4c0e1b8e941..00a05569b95 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 &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 20f32a2ad9b..d1413510fff 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()); -}