If NDEBUG is set, don't include any of the code for visualizing inheritance hierarchies

llvm-svn: 58029
This commit is contained in:
Douglas Gregor 2008-10-23 03:52:39 +00:00
parent b0a4875b42
commit 01bef3c016
1 changed files with 2 additions and 0 deletions

View File

@ -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.