diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2010-04-12 15:02:19 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2010-04-12 15:02:19 +0000 |
commit | e7e08c39de6ab481678b37c077514ac2780292e5 (patch) | |
tree | b12c3a3896c1c19ec99549263ec6b0dc636b3b74 /lib/Analysis/DomPrinter.cpp | |
parent | 2706387d37b30fc191c5b74987dc139e1835c52d (diff) |
Remove dead code in the dotty dominance tree printer.
This template is not needed anymore as it was replaced by the
DOTGraphTraitsViewer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101036 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DomPrinter.cpp')
-rw-r--r-- | lib/Analysis/DomPrinter.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/Analysis/DomPrinter.cpp b/lib/Analysis/DomPrinter.cpp index 3af687af18..a1676e5bb6 100644 --- a/lib/Analysis/DomPrinter.cpp +++ b/lib/Analysis/DomPrinter.cpp @@ -83,31 +83,6 @@ struct DOTGraphTraits<PostDominatorTree*> } 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 : public DOTGraphTraitsViewer<DominatorTree, false> { static char ID; |