Fix PR 7087, and probably other things, by extending
[oota-llvm.git] / lib / CodeGen / MachineLoopInfo.cpp
index d561a5bb8c998cc14e454bb2edeec48a725f3340..269538b31d0b9442c64ee33b7a367d55430a7ec0 100644 (file)
@@ -17,6 +17,7 @@
 #include "llvm/CodeGen/MachineLoopInfo.h"
 #include "llvm/CodeGen/MachineDominators.h"
 #include "llvm/CodeGen/Passes.h"
+#include "llvm/Support/Debug.h"
 using namespace llvm;
 
 namespace llvm {
@@ -73,3 +74,7 @@ MachineBasicBlock *MachineLoop::getBottomBlock() {
   }
   return BotMBB;
 }
+
+void MachineLoop::dump() const {
+  print(dbgs());
+}