summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-08-27 04:02:35 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-08-27 04:02:35 +0000
commitfec656c44cfec5566f94ff54e1429387aea5a6ce (patch)
tree664ca065f3c729aca8306163cf7914f215665373 /include/llvm/CodeGen
parent6177d3f4481ef622ce8cc19bbde8709214881aec (diff)
downloadllvm-fec656c44cfec5566f94ff54e1429387aea5a6ce.tar.gz
llvm-fec656c44cfec5566f94ff54e1429387aea5a6ce.tar.bz2
llvm-fec656c44cfec5566f94ff54e1429387aea5a6ce.tar.xz
Add getLastBlock member. This is useful when growing a densemap keyed
on MachineBasicBlocks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16069 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/MachineFunction.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h
index ec72f6eb44..69b86a640e 100644
--- a/include/llvm/CodeGen/MachineFunction.h
+++ b/include/llvm/CodeGen/MachineFunction.h
@@ -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.
///