summaryrefslogtreecommitdiff
path: root/lib/Analysis/PostDominators.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-04-16 04:21:16 +0000
committerOwen Anderson <resistor@mac.com>2008-04-16 04:21:16 +0000
commit1f23e163190f85e46f2009bf43ee4fe8299044e4 (patch)
tree059cec0ff566b31b0a5762a57ea5ac6f4586065d /lib/Analysis/PostDominators.cpp
parent036a94ed61da276c23b59362fc586248d1d4289d (diff)
downloadllvm-1f23e163190f85e46f2009bf43ee4fe8299044e4.tar.gz
llvm-1f23e163190f85e46f2009bf43ee4fe8299044e4.tar.bz2
llvm-1f23e163190f85e46f2009bf43ee4fe8299044e4.tar.xz
Major repairs to the post-dominators implementation. Patch from Florian Brandner!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49768 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/PostDominators.cpp')
-rw-r--r--lib/Analysis/PostDominators.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Analysis/PostDominators.cpp b/lib/Analysis/PostDominators.cpp
index 8bfa0692b9..4330e9039d 100644
--- a/lib/Analysis/PostDominators.cpp
+++ b/lib/Analysis/PostDominators.cpp
@@ -11,9 +11,12 @@
//
//===----------------------------------------------------------------------===//
+#define DEBUG_TYPE "postdomtree"
+
#include "llvm/Analysis/PostDominators.h"
#include "llvm/Instructions.h"
#include "llvm/Support/CFG.h"
+#include "llvm/Support/Debug.h"
#include "llvm/ADT/DepthFirstIterator.h"
#include "llvm/ADT/SetOperations.h"
#include "llvm/Analysis/DominatorInternals.h"
@@ -30,6 +33,7 @@ F("postdomtree", "Post-Dominator Tree Construction", true, true);
bool PostDominatorTree::runOnFunction(Function &F) {
DT->recalculate(F);
+ DEBUG(DT->dump());
return false;
}