mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-04 02:24:29 +00:00
split dom frontier handling stuff out to its own DominanceFrontier header,
so that Dominators.h is *just* domtree. Also prune #includes a bit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122714 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
#include "llvm/Pass.h"
|
||||
#include "llvm/Value.h"
|
||||
#include "llvm/Analysis/CallGraph.h"
|
||||
#include "llvm/Analysis/Dominators.h"
|
||||
#include "llvm/Analysis/DominanceFrontier.h"
|
||||
#include "llvm/Support/ToolOutputFile.h"
|
||||
using namespace llvm;
|
||||
|
||||
@ -61,8 +61,7 @@ namespace llvm {
|
||||
static std::string getNodeLabel(CallGraphNode *Node, CallGraph *Graph) {
|
||||
if (Node->getFunction())
|
||||
return ((Value*)Node->getFunction())->getName();
|
||||
else
|
||||
return "external node";
|
||||
return "external node";
|
||||
}
|
||||
};
|
||||
}
|
||||
@ -109,10 +108,8 @@ namespace {
|
||||
}
|
||||
|
||||
virtual bool runOnFunction(Function &F) {
|
||||
DominatorTree &DT = getAnalysis<DominatorTree>();
|
||||
DT.dump();
|
||||
DominanceFrontier &DF = getAnalysis<DominanceFrontier>();
|
||||
DF.dump();
|
||||
getAnalysis<DominatorTree>().dump();
|
||||
getAnalysis<DominanceFrontier>().dump();
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user