aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-09-30 21:42:02 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-09-30 21:42:02 +0000
commit4b97f23a0099bacb77d4262b47c7692417d378df (patch)
tree4e94a2cde47d995ebd15ab714eb0e53734a10956 /include/llvm
parent30eed211c99246392edf49c1bc6e9fb2a8f7a0f6 (diff)
downloadexternal_llvm-4b97f23a0099bacb77d4262b47c7692417d378df.zip
external_llvm-4b97f23a0099bacb77d4262b47c7692417d378df.tar.gz
external_llvm-4b97f23a0099bacb77d4262b47c7692417d378df.tar.bz2
Add const version of getLastBlock() member function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16625 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/CodeGen/MachineFunction.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h
index 4420c3b..72feda4 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.