diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-08-27 04:02:35 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-08-27 04:02:35 +0000 |
commit | 7ebfde2be63fb649f3a38d0d032a5f0209cf5a55 (patch) | |
tree | 77f88ce85dec3bd19ea5a2244184464178a71110 /llvm | |
parent | 390c820a82fc5568e5fd2a69a3721a5ea18ddd11 (diff) | |
download | bcm5719-llvm-7ebfde2be63fb649f3a38d0d032a5f0209cf5a55.tar.gz bcm5719-llvm-7ebfde2be63fb649f3a38d0d032a5f0209cf5a55.zip |
Add getLastBlock member. This is useful when growing a densemap keyed
on MachineBasicBlocks.
llvm-svn: 16069
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/CodeGen/MachineFunction.h | 5 |
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. /// |