[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineFunction.h
Alkis Evlogimenos
alkis at cs.uiuc.edu
Thu Aug 26 21:02:45 PDT 2004
Changes in directory llvm/include/llvm/CodeGen:
MachineFunction.h updated: 1.41 -> 1.42
---
Log message:
Add getLastBlock member. This is useful when growing a densemap keyed
on MachineBasicBlocks.
---
Diffs of the changes: (+5 -0)
Index: llvm/include/llvm/CodeGen/MachineFunction.h
diff -u llvm/include/llvm/CodeGen/MachineFunction.h:1.41 llvm/include/llvm/CodeGen/MachineFunction.h:1.42
--- llvm/include/llvm/CodeGen/MachineFunction.h:1.41 Wed Aug 18 13:13:16 2004
+++ llvm/include/llvm/CodeGen/MachineFunction.h Thu Aug 26 23:02:35 2004
@@ -149,6 +149,11 @@
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.
///
More information about the llvm-commits
mailing list