Convert debug messages to use dbgs(). Generally this means
[oota-llvm.git] / lib / Analysis / PostDominators.cpp
index 3d3713b11d9210fa11b0c7eebb9d3350f6bf5283..69d6b47bbee49cd42264edce511ea2680e2a94e6 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(errs()));
   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();
 }
@@ -91,4 +95,4 @@ PostDominanceFrontier::calculate(const PostDominatorTree &DT,
 
 FunctionPass* llvm::createPostDomFrontier() {
   return new PostDominanceFrontier();
-}
\ No newline at end of file
+}