[cfe-commits] r58029 - /cfe/trunk/lib/AST/InheritViz.cpp

Douglas Gregor doug.gregor at gmail.com
Wed Oct 22 20:52:42 PDT 2008


Author: dgregor
Date: Wed Oct 22 22:52:39 2008
New Revision: 58029

URL: http://llvm.org/viewvc/llvm-project?rev=58029&view=rev
Log:
If NDEBUG is set, don't include any of the code for visualizing inheritance hierarchies

Modified:
    cfe/trunk/lib/AST/InheritViz.cpp

Modified: cfe/trunk/lib/AST/InheritViz.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/InheritViz.cpp?rev=58029&r1=58028&r2=58029&view=diff

==============================================================================
--- cfe/trunk/lib/AST/InheritViz.cpp (original)
+++ cfe/trunk/lib/AST/InheritViz.cpp Wed Oct 22 22:52:39 2008
@@ -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.





More information about the cfe-commits mailing list