Add getLastBlock member. This is useful when growing a densemap keyed
authorAlkis Evlogimenos <alkis@evlogimenos.com>
Fri, 27 Aug 2004 04:02:35 +0000 (04:02 +0000)
committerAlkis Evlogimenos <alkis@evlogimenos.com>
Fri, 27 Aug 2004 04:02:35 +0000 (04:02 +0000)
on MachineBasicBlocks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16069 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineFunction.h

index ec72f6eb449f487fb559cecb4b954a2bf76b5f85..69b86a640e8972f39dd50bb3660012be93e78673 100644 (file)
@@ -149,6 +149,11 @@ public:
     return MBBNumbering[N];
   }
 
+  /// getLastBlock - Returns the MachineBasicBlock with the greatest number
+  MachineBasicBlock *getLastBlock() {
+    return MBBNumbering.back();
+  }
+
   /// print - Print out the MachineFunction in a format suitable for debugging
   /// to the specified stream.
   ///