aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineFunction.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/CodeGen/MachineFunction.h')
-rw-r--r--include/llvm/CodeGen/MachineFunction.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h
index ec72f6eb44..69b86a640e 100644
--- a/include/llvm/CodeGen/MachineFunction.h
+++ b/include/llvm/CodeGen/MachineFunction.h
@@ -149,6 +149,11 @@ public:
return MBBNumbering[N];
}
+ /// getLastBlock - Returns the MachineBasicBlock with the greatest number
+ MachineBasicBlock *getLastBlock() {
+ return MBBNumbering.back();
+ }
+
/// print - Print out the MachineFunction in a format suitable for debugging
/// to the specified stream.
///