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
This commit is contained in:
Alkis Evlogimenos 2004-08-27 04:02:35 +00:00
parent 6177d3f448
commit fec656c44c

View File

@ -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.
///