summaryrefslogtreecommitdiffstats
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
commit2db22024cfafae3c5c7f7d23129a31f1e21d9880 (patch)
tree22ff567e3ae8553e387ad46642e0a353055816fc
parent733b4bd8ae8910d70a9d3ec4107e96524a90b4bd (diff)
downloadbcm5719-llvm-2db22024cfafae3c5c7f7d23129a31f1e21d9880.tar.gz
bcm5719-llvm-2db22024cfafae3c5c7f7d23129a31f1e21d9880.zip
Remove. Not needed.
llvm-svn: 37139
-rw-r--r--llvm/include/llvm/Target/TargetInstrInfo.h5
-rw-r--r--llvm/lib/Target/TargetInstrInfo.cpp4
2 files changed, 0 insertions, 9 deletions
diff --git a/llvm/include/llvm/Target/TargetInstrInfo.h b/llvm/include/llvm/Target/TargetInstrInfo.h
index 4c0e1b8e941..00a05569b95 100644
--- a/llvm/include/llvm/Target/TargetInstrInfo.h
+++ b/llvm/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/llvm/lib/Target/TargetInstrInfo.cpp b/llvm/lib/Target/TargetInstrInfo.cpp
index 20f32a2ad9b..d1413510fff 100644
--- a/llvm/lib/Target/TargetInstrInfo.cpp
+++ b/llvm/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());
-}
OpenPOWER on IntegriCloud