aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-05-17 00:11:35 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-05-17 00:11:35 +0000
commitd9e9efb253978ce4a3683085d1f75c5734143bf9 (patch)
tree559d8dc2cc79b88bfcf3dd9f05d3760f07f7ce8d
parente425956b7258eef15a83f0d98e43a67dc7703965 (diff)
downloadexternal_llvm-d9e9efb253978ce4a3683085d1f75c5734143bf9.zip
external_llvm-d9e9efb253978ce4a3683085d1f75c5734143bf9.tar.gz
external_llvm-d9e9efb253978ce4a3683085d1f75c5734143bf9.tar.bz2
Remove. Not needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37139 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/TargetInstrInfo.h5
-rw-r--r--lib/Target/TargetInstrInfo.cpp4
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());
-}