Skip to content

Commit 97c463d

Browse files
committed
[NFC] Move Symbol::dump definition to symbol.cpp.
1 parent eb36394 commit 97c463d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

flang/include/flang/Semantics/symbol.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ class Symbol {
651651
const DerivedTypeSpec *GetParentTypeSpec(const Scope * = nullptr) const;
652652

653653
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
654-
LLVM_DUMP_METHOD void dump() const { llvm::errs() << *this << '\n'; }
654+
LLVM_DUMP_METHOD void dump() const;
655655
#endif
656656

657657
private:

flang/lib/Semantics/symbol.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,10 @@ llvm::raw_ostream &operator<<(llvm::raw_ostream &os, const Symbol &symbol) {
505505
return os;
506506
}
507507

508+
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
509+
void Symbol::dump() const { llvm::errs() << *this << '\n'; }
510+
#endif
511+
508512
// Output a unique name for a scope by qualifying it with the names of
509513
// parent scopes. For scopes without corresponding symbols, use the kind
510514
// with an index (e.g. Block1, Block2, etc.).

0 commit comments

Comments
 (0)