summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/CodeGen/MachineFunction.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineFunction.h b/llvm/include/llvm/CodeGen/MachineFunction.h
index ec72f6eb449..69b86a640e8 100644
--- a/llvm/include/llvm/CodeGen/MachineFunction.h
+++ b/llvm/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.
///
OpenPOWER on IntegriCloud