From: Douglas Gregor Date: Thu, 23 Oct 2008 03:52:39 +0000 (+0000) Subject: If NDEBUG is set, don't include any of the code for visualizing inheritance hierarchies X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a64a0329af04474f35b7e4a49629acbec28be15;p=clang 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 --- 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.