aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineFunction.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-09-14 06:40:48 +0000
committerChris Lattner <sabre@nondot.org>2006-09-14 06:40:48 +0000
commit2540813e5d583fdc40458a53badb323ae5d83a07 (patch)
tree9c39a1b4d99a8eaf0953deb78a92ccca7491e91a /include/llvm/CodeGen/MachineFunction.h
parent5f1d01393c1dbafca3c5d91adbb0a97c387a5a1e (diff)
Remove dead methods, add getNumBlockIDs() method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30322 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineFunction.h')
-rw-r--r--include/llvm/CodeGen/MachineFunction.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h
index 340e2f936b..b06dd63922 100644
--- a/include/llvm/CodeGen/MachineFunction.h
+++ b/include/llvm/CodeGen/MachineFunction.h
@@ -223,13 +223,8 @@ public:
return MBBNumbering[N];
}
- /// getLastBlock - Returns the MachineBasicBlock with the greatest number
- MachineBasicBlock *getLastBlock() {
- return MBBNumbering.back();
- }
- const MachineBasicBlock *getLastBlock() const {
- return MBBNumbering.back();
- }
+ /// getNumBlockIDs - Return the number of MBB ID's allocated.
+ unsigned getNumBlockIDs() const { return MBBNumbering.size(); }
/// print - Print out the MachineFunction in a format suitable for debugging
/// to the specified stream.