Skip to content

Commit 4a3025b

Browse files
committed
make Symbol::dump conditional on debug build type.
1 parent 41c46a2 commit 4a3025b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flang/include/flang/Semantics/symbol.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,9 @@ class Symbol {
650650
// for a parameterized derived type instantiation with the instance's scope.
651651
const DerivedTypeSpec *GetParentTypeSpec(const Scope * = nullptr) const;
652652

653+
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
653654
LLVM_DUMP_METHOD void dump() const { llvm::errs() << *this << '\n'; }
655+
#endif
654656

655657
private:
656658
const Scope *owner_;

0 commit comments

Comments
 (0)