diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2009-11-30 12:38:13 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2009-11-30 12:38:13 +0000 |
commit | 90d334032a55963463b7abcb107147feb626cf62 (patch) | |
tree | 7c4724783f5f2b9a508d59e816fecd2a8a0d4e43 /llvm/lib/Analysis/DomPrinter.cpp | |
parent | 8d6f6b74b14c1ea620a0f59e6bdd488f5f60052b (diff) | |
download | bcm5719-llvm-90d334032a55963463b7abcb107147feb626cf62.tar.gz bcm5719-llvm-90d334032a55963463b7abcb107147feb626cf62.zip |
Instantiate DefaultDOTGraphTraits
llvm-svn: 90133
Diffstat (limited to 'llvm/lib/Analysis/DomPrinter.cpp')
-rw-r--r-- | llvm/lib/Analysis/DomPrinter.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/DomPrinter.cpp b/llvm/lib/Analysis/DomPrinter.cpp index ebfba7ef0f6..762cd9f6bcb 100644 --- a/llvm/lib/Analysis/DomPrinter.cpp +++ b/llvm/lib/Analysis/DomPrinter.cpp @@ -30,6 +30,9 @@ using namespace llvm; namespace llvm { template<> struct DOTGraphTraits<DomTreeNode*> : public DefaultDOTGraphTraits { + + DOTGraphTraits (bool isSimple=false) : DefaultDOTGraphTraits(isSimple) {} + static std::string getNodeLabel(DomTreeNode *Node, DomTreeNode *Graph, bool ShortNames) { @@ -46,6 +49,9 @@ struct DOTGraphTraits<DomTreeNode*> : public DefaultDOTGraphTraits { template<> struct DOTGraphTraits<DominatorTree*> : public DOTGraphTraits<DomTreeNode*> { + DOTGraphTraits (bool isSimple=false) + : DOTGraphTraits<DomTreeNode*>(isSimple) {} + static std::string getGraphName(DominatorTree *DT) { return "Dominator tree"; } @@ -61,6 +67,10 @@ struct DOTGraphTraits<DominatorTree*> : public DOTGraphTraits<DomTreeNode*> { template<> struct DOTGraphTraits<PostDominatorTree*> : public DOTGraphTraits<DomTreeNode*> { + + DOTGraphTraits (bool isSimple=false) + : DOTGraphTraits<DomTreeNode*>(isSimple) {} + static std::string getGraphName(PostDominatorTree *DT) { return "Post dominator tree"; } |