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
This commit is contained in:
Chris Lattner 2003-02-09 18:42:16 +00:00
parent 93d7a212cc
commit 47a307aef0

View 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;
}