summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2010-04-12 15:02:19 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2010-04-12 15:02:19 +0000
commit6a5eef40674770a48bdb39d8a942b246f7ccace7 (patch)
treefe7dcdd2b59af74e6f20908222209df3b2ef6170 /llvm/lib
parent1f336da54f1e35ddd71a1448a4a0fb94f7b454a3 (diff)
downloadbcm5719-llvm-6a5eef40674770a48bdb39d8a942b246f7ccace7.tar.gz
bcm5719-llvm-6a5eef40674770a48bdb39d8a942b246f7ccace7.zip
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
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/DomPrinter.cpp25
1 files changed, 0 insertions, 25 deletions
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<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;
OpenPOWER on IntegriCloud