Print out the steens graph if -debug is specified
authorChris Lattner <sabre@nondot.org>
Sun, 9 Feb 2003 18:42:16 +0000 (18:42 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 9 Feb 2003 18:42:16 +0000 (18:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5514 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/Steensgaard.cpp

index 6ea2449483780a6a2be0cc100eddab4795f3d232..d024266c754bfd7d0f61d686af68a5340624592c 100644 (file)
@@ -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;
 }