diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index 4420c3b84e8..72feda4eb18 100644 --- a/include/llvm/CodeGen/MachineFunction.h +++ b/include/llvm/CodeGen/MachineFunction.h @@ -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.