mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
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:
@@ -11,6 +11,7 @@
|
|||||||
#include "llvm/Analysis/DSGraph.h"
|
#include "llvm/Analysis/DSGraph.h"
|
||||||
#include "llvm/Analysis/AliasAnalysis.h"
|
#include "llvm/Analysis/AliasAnalysis.h"
|
||||||
#include "llvm/Module.h"
|
#include "llvm/Module.h"
|
||||||
|
#include "Support/Statistic.h"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
class Steens : public Pass, public AliasAnalysis {
|
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!
|
// FIXME: We should be able to disable the globals graph for steens!
|
||||||
ResultGraph->removeDeadNodes(DSGraph::KeepUnreachableGlobals);
|
ResultGraph->removeDeadNodes(DSGraph::KeepUnreachableGlobals);
|
||||||
|
|
||||||
//print(std::cerr, &M);
|
DEBUG(print(std::cerr, &M));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user