forked from OSchip/llvm-project
Add getLastBlock member. This is useful when growing a densemap keyed
on MachineBasicBlocks. llvm-svn: 16069
This commit is contained in:
parent
390c820a82
commit
7ebfde2be6
|
@ -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.
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue