Add getLastBlock member. This is useful when growing a densemap keyed

on MachineBasicBlocks.

llvm-svn: 16069
This commit is contained in:
Alkis Evlogimenos 2004-08-27 04:02:35 +00:00
parent 390c820a82
commit 7ebfde2be6
1 changed files with 5 additions and 0 deletions

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