forked from OSchip/llvm-project
Add const version of getLastBlock() member function.
llvm-svn: 16625
This commit is contained in:
parent
aba8cf29ce
commit
94d5a1ceda
|
@ -153,6 +153,9 @@ public:
|
||||||
MachineBasicBlock *getLastBlock() {
|
MachineBasicBlock *getLastBlock() {
|
||||||
return MBBNumbering.back();
|
return MBBNumbering.back();
|
||||||
}
|
}
|
||||||
|
const MachineBasicBlock *getLastBlock() const {
|
||||||
|
return MBBNumbering.back();
|
||||||
|
}
|
||||||
|
|
||||||
/// print - Print out the MachineFunction in a format suitable for debugging
|
/// print - Print out the MachineFunction in a format suitable for debugging
|
||||||
/// to the specified stream.
|
/// to the specified stream.
|
||||||
|
|
Loading…
Reference in New Issue