Now that hopefully all direct accesses to InvokeInst operands are fixed
[oota-llvm.git] / lib / Analysis / PostDominators.cpp
index 4853c2ac87b7998cabca44b0305eead84dc5991a..c38e0503f931d25bc9ae725f6a567f6ad2c214ee 100644 (file)
@@ -33,15 +33,19 @@ F("postdomtree", "Post-Dominator Tree Construction", true, true);
 
 bool PostDominatorTree::runOnFunction(Function &F) {
   DT->recalculate(F);
-  DEBUG(DT->dump());
+  DEBUG(DT->print(dbgs()));
   return false;
 }
 
-PostDominatorTree::~PostDominatorTree()
-{
+PostDominatorTree::~PostDominatorTree() {
   delete DT;
 }
 
+void PostDominatorTree::print(raw_ostream &OS, const Module *) const {
+  DT->print(OS);
+}
+
+
 FunctionPass* llvm::createPostDomTree() {
   return new PostDominatorTree();
 }