summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/CodeGen/MachineFunction.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineFunction.h b/llvm/include/llvm/CodeGen/MachineFunction.h
index 4420c3b84e8..72feda4eb18 100644
--- a/llvm/include/llvm/CodeGen/MachineFunction.h
+++ b/llvm/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.
OpenPOWER on IntegriCloud