diff --git a/clang/lib/AST/InheritViz.cpp b/clang/lib/AST/InheritViz.cpp index fcba50e429a8..b817ed613f1c 100644 --- a/clang/lib/AST/InheritViz.cpp +++ b/clang/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.