From 2540813e5d583fdc40458a53badb323ae5d83a07 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 14 Sep 2006 06:40:48 +0000 Subject: Remove dead methods, add getNumBlockIDs() method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30322 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineFunction.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'include/llvm/CodeGen/MachineFunction.h') 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. -- cgit v1.2.3