aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineBasicBlock.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/CodeGen/MachineBasicBlock.h')
-rw-r--r--include/llvm/CodeGen/MachineBasicBlock.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h
index e89b64eea6..2ab1624375 100644
--- a/include/llvm/CodeGen/MachineBasicBlock.h
+++ b/include/llvm/CodeGen/MachineBasicBlock.h
@@ -16,6 +16,7 @@
#include "llvm/CodeGen/MachineInstr.h"
#include "Support/ilist"
+#include <iosfwd>
namespace llvm {
@@ -127,6 +128,10 @@ public:
iterator erase(iterator I, iterator E) { return Insts.erase(I, E); }
MachineInstr* remove(iterator &I) { return Insts.remove(I); }
+ // Debugging methods.
+ void dump() const;
+ void print(std::ostream &OS) const;
+
private: // Methods used to maintain doubly linked list of blocks...
friend class ilist_traits<MachineBasicBlock>;