From 6a5eef40674770a48bdb39d8a942b246f7ccace7 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Mon, 12 Apr 2010 15:02:19 +0000 Subject: 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 --- llvm/lib/Analysis/DomPrinter.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'llvm/lib/Analysis') diff --git a/llvm/lib/Analysis/DomPrinter.cpp b/llvm/lib/Analysis/DomPrinter.cpp index 3af687af184..a1676e5bb61 100644 --- a/llvm/lib/Analysis/DomPrinter.cpp +++ b/llvm/lib/Analysis/DomPrinter.cpp @@ -83,31 +83,6 @@ struct DOTGraphTraits } namespace { -template -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(); - GraphName = DOTGraphTraits::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(); - } -}; - struct DomViewer : public DOTGraphTraitsViewer { static char ID; -- cgit v1.2.3