From: Chris Lattner Date: Sun, 9 Feb 2003 18:42:16 +0000 (+0000) Subject: Print out the steens graph if -debug is specified X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=47a307aef0398db47963fd83a61bce4228fe323f;p=oota-llvm.git Print out the steens graph if -debug is specified git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5514 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/DataStructure/Steensgaard.cpp b/lib/Analysis/DataStructure/Steensgaard.cpp index 6ea24494837..d024266c754 100644 --- a/lib/Analysis/DataStructure/Steensgaard.cpp +++ b/lib/Analysis/DataStructure/Steensgaard.cpp @@ -11,6 +11,7 @@ #include "llvm/Analysis/DSGraph.h" #include "llvm/Analysis/AliasAnalysis.h" #include "llvm/Module.h" +#include "Support/Statistic.h" namespace { class Steens : public Pass, public AliasAnalysis { @@ -192,7 +193,7 @@ bool Steens::run(Module &M) { // FIXME: We should be able to disable the globals graph for steens! ResultGraph->removeDeadNodes(DSGraph::KeepUnreachableGlobals); - //print(std::cerr, &M); + DEBUG(print(std::cerr, &M)); return false; }