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 fcba50e..b817ed6 100644
--- a/lib/AST/InheritViz.cpp
+++ b/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.