aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineLoopInfo.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-01-05 21:08:02 +0000
committerDan Gohman <gohman@apple.com>2010-01-05 21:08:02 +0000
commitdda30cd4af1c5f88fc00fd40b673f8e27c61379d (patch)
tree769df0939af35cc35521403730d0c4b93452fc8a /lib/CodeGen/MachineLoopInfo.cpp
parent8c65f6e71c1d46d823b9a884819992a9255edd54 (diff)
Restore dump() methods to Loop and MachineLoop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92772 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineLoopInfo.cpp')
-rw-r--r--lib/CodeGen/MachineLoopInfo.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineLoopInfo.cpp b/lib/CodeGen/MachineLoopInfo.cpp
index d561a5bb8c..269538b31d 100644
--- a/lib/CodeGen/MachineLoopInfo.cpp
+++ b/lib/CodeGen/MachineLoopInfo.cpp
@@ -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());
+}