Add const version of getLastBlock() member function.

llvm-svn: 16625
This commit is contained in:
Alkis Evlogimenos 2004-09-30 21:42:02 +00:00
parent aba8cf29ce
commit 94d5a1ceda
1 changed files with 3 additions and 0 deletions

View File

@ -153,6 +153,9 @@ public:
MachineBasicBlock *getLastBlock() {
return MBBNumbering.back();
}
const MachineBasicBlock *getLastBlock() const {
return MBBNumbering.back();
}
/// print - Print out the MachineFunction in a format suitable for debugging
/// to the specified stream.