Add const version of getLastBlock() member function.
authorAlkis Evlogimenos <alkis@evlogimenos.com>
Thu, 30 Sep 2004 21:42:02 +0000 (21:42 +0000)
committerAlkis Evlogimenos <alkis@evlogimenos.com>
Thu, 30 Sep 2004 21:42:02 +0000 (21:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16625 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineFunction.h

index 4420c3b84e872cb3e042af241ffc23898417ec07..72feda4eb18ce93bed50374adcd67e423bbdbbb2 100644 (file)
@@ -153,6 +153,9 @@ public:
   MachineBasicBlock *getLastBlock() {
     return MBBNumbering.back();
   }
+  const MachineBasicBlock *getLastBlock() const {
+    return MBBNumbering.back();
+  }
 
   /// print - Print out the MachineFunction in a format suitable for debugging
   /// to the specified stream.