diff options
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/MachineFunction.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index 4420c3b..72feda4 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. |