If NDEBUG is set, don't include any of the code for visualizing inheritance hierarchies
llvm-svn: 58029
diff --git a/clang/lib/AST/InheritViz.cpp b/clang/lib/AST/InheritViz.cpp
index fcba50e..b817ed6 100644
--- a/clang/lib/AST/InheritViz.cpp
+++ b/clang/lib/AST/InheritViz.cpp
@@ -25,6 +25,7 @@
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 @@
Out << "_" << DirectBaseCount[CanonType];
return Out;
}
+#endif
/// viewInheritance - Display the inheritance hierarchy of this C++
/// class using GraphViz.