From 4b97f23a0099bacb77d4262b47c7692417d378df Mon Sep 17 00:00:00 2001 From: Alkis Evlogimenos Date: Thu, 30 Sep 2004 21:42:02 +0000 Subject: [PATCH] Add const version of getLastBlock() member function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16625 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineFunction.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index 4420c3b84e8..72feda4eb18 100644 --- a/include/llvm/CodeGen/MachineFunction.h +++ b/include/llvm/CodeGen/MachineFunction.h @@ -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. -- 2.34.1