mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Remove dead code in the dotty dominance tree printer.
This template is not needed anymore as it was replaced by the DOTGraphTraitsViewer. llvm-svn: 101036
This commit is contained in:
parent
033019690a
commit
0c22d436c2
@ -83,31 +83,6 @@ struct DOTGraphTraits<PostDominatorTree*>
|
|||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
template <class Analysis, bool OnlyBBS>
|
|
||||||
struct GenericGraphViewer : public FunctionPass {
|
|
||||||
std::string Name;
|
|
||||||
|
|
||||||
GenericGraphViewer(std::string GraphName, const void *ID) : FunctionPass(ID) {
|
|
||||||
Name = GraphName;
|
|
||||||
}
|
|
||||||
|
|
||||||
virtual bool runOnFunction(Function &F) {
|
|
||||||
Analysis *Graph;
|
|
||||||
std::string Title, GraphName;
|
|
||||||
Graph = &getAnalysis<Analysis>();
|
|
||||||
GraphName = DOTGraphTraits<Analysis*>::getGraphName(Graph);
|
|
||||||
Title = GraphName + " for '" + F.getNameStr() + "' function";
|
|
||||||
ViewGraph(Graph, Name, OnlyBBS, Title);
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
|
||||||
AU.setPreservesAll();
|
|
||||||
AU.addRequired<Analysis>();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
struct DomViewer
|
struct DomViewer
|
||||||
: public DOTGraphTraitsViewer<DominatorTree, false> {
|
: public DOTGraphTraitsViewer<DominatorTree, false> {
|
||||||
static char ID;
|
static char ID;
|
||||||
|
Loading…
Reference in New Issue
Block a user