Add const version of getLastBlock() member function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16625 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Alkis Evlogimenos 2004-09-30 21:42:02 +00:00
parent 30eed211c9
commit 4b97f23a00

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.