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 | a10d598602308549d87d2c5d9848f5a72fda2b43 (patch) | |
tree | 2fc270eec01197343479f274683e270bf2ca3613 /include/llvm/Support/DOTGraphTraits.h | |
parent | ce4edd647bddec0be61df39962f1a697068891f2 (diff) | |
download | external_llvm-a10d598602308549d87d2c5d9848f5a72fda2b43.tar.gz external_llvm-a10d598602308549d87d2c5d9848f5a72fda2b43.tar.bz2 external_llvm-a10d598602308549d87d2c5d9848f5a72fda2b43.zip |
Instantiate DefaultDOTGraphTraits
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90133 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/DOTGraphTraits.h')
-rw-r--r-- | include/llvm/Support/DOTGraphTraits.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/llvm/Support/DOTGraphTraits.h b/include/llvm/Support/DOTGraphTraits.h index 080297f829..0e8f59bdeb 100644 --- a/include/llvm/Support/DOTGraphTraits.h +++ b/include/llvm/Support/DOTGraphTraits.h @@ -27,6 +27,17 @@ namespace llvm { /// implementations. /// struct DefaultDOTGraphTraits { +private: + bool IsSimple; + +protected: + bool isSimple() { + return IsSimple; + } + +public: + DefaultDOTGraphTraits (bool simple=false) : IsSimple (simple) {} + /// getGraphName - Return the label for the graph as a whole. Printed at the /// top of the graph. /// @@ -135,7 +146,9 @@ struct DefaultDOTGraphTraits { /// from DefaultDOTGraphTraits if you don't need to override everything. /// template <typename Ty> -struct DOTGraphTraits : public DefaultDOTGraphTraits {}; +struct DOTGraphTraits : public DefaultDOTGraphTraits { + DOTGraphTraits (bool simple=false) : DefaultDOTGraphTraits (simple) {} +}; } // End llvm namespace |