summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2009-11-30 12:38:13 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2009-11-30 12:38:13 +0000
commit90d334032a55963463b7abcb107147feb626cf62 (patch)
tree7c4724783f5f2b9a508d59e816fecd2a8a0d4e43 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
parent8d6f6b74b14c1ea620a0f59e6bdd488f5f60052b (diff)
downloadbcm5719-llvm-90d334032a55963463b7abcb107147feb626cf62.tar.gz
bcm5719-llvm-90d334032a55963463b7abcb107147feb626cf62.zip
Instantiate DefaultDOTGraphTraits
llvm-svn: 90133
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
index ccc5e3c75c9..3a509922abb 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
@@ -35,6 +35,9 @@ using namespace llvm;
namespace llvm {
template<>
struct DOTGraphTraits<SelectionDAG*> : public DefaultDOTGraphTraits {
+
+ DOTGraphTraits (bool isSimple=false) : DefaultDOTGraphTraits(isSimple) {}
+
static bool hasEdgeDestLabels() {
return true;
}
@@ -48,8 +51,8 @@ namespace llvm {
}
/// edgeTargetsEdgeSource - This method returns true if this outgoing edge
- /// should actually target another edge source, not a node. If this method is
- /// implemented, getEdgeTarget should be implemented.
+ /// should actually target another edge source, not a node. If this method
+ /// is implemented, getEdgeTarget should be implemented.
template<typename EdgeIter>
static bool edgeTargetsEdgeSource(const void *Node, EdgeIter I) {
return true;
OpenPOWER on IntegriCloud