diff options
author | Douglas Gregor <dgregor@apple.com> | 2008-10-23 03:52:39 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2008-10-23 03:52:39 +0000 |
commit | 7a64a0329af04474f35b7e4a49629acbec28be15 (patch) | |
tree | 567ae3dc1daf00d75a89321d64e07f9103f9a1cf /lib/AST/InheritViz.cpp | |
parent | e1911afd2a79cb508bc81b30be49a0c8648a81b0 (diff) |
If NDEBUG is set, don't include any of the code for visualizing inheritance hierarchies
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58029 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/InheritViz.cpp')
-rw-r--r-- | lib/AST/InheritViz.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/AST/InheritViz.cpp b/lib/AST/InheritViz.cpp index fcba50e429..b817ed613f 100644 --- a/lib/AST/InheritViz.cpp +++ b/lib/AST/InheritViz.cpp @@ -25,6 +25,7 @@ using namespace llvm; namespace clang { +#ifndef NDEBUG /// InheritanceHierarchyWriter - Helper class that writes out a /// GraphViz file that diagrams the inheritance hierarchy starting at /// a given C++ class type. Note that we do not use LLVM's @@ -130,6 +131,7 @@ InheritanceHierarchyWriter::WriteNodeReference(QualType Type, Out << "_" << DirectBaseCount[CanonType]; return Out; } +#endif /// viewInheritance - Display the inheritance hierarchy of this C++ /// class using GraphViz. |