summaryrefslogtreecommitdiffstats
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
commit7ebfde2be63fb649f3a38d0d032a5f0209cf5a55 (patch)
tree77f88ce85dec3bd19ea5a2244184464178a71110
parent390c820a82fc5568e5fd2a69a3721a5ea18ddd11 (diff)
downloadbcm5719-llvm-7ebfde2be63fb649f3a38d0d032a5f0209cf5a55.tar.gz
bcm5719-llvm-7ebfde2be63fb649f3a38d0d032a5f0209cf5a55.zip
Add getLastBlock member. This is useful when growing a densemap keyed
on MachineBasicBlocks. llvm-svn: 16069
-rw-r--r--llvm/include/llvm/CodeGen/MachineFunction.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineFunction.h b/llvm/include/llvm/CodeGen/MachineFunction.h
index ec72f6eb449..69b86a640e8 100644
--- a/llvm/include/llvm/CodeGen/MachineFunction.h
+++ b/llvm/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.
///
OpenPOWER on IntegriCloud