[analyzer] Fix -Wunused-function in NDEBUG builds with #ifdef LLVM_DUMP_METHOD

llvm-svn: 366663
This commit is contained in:
Fangrui Song 2019-07-22 04:14:09 +00:00
parent ee5dc7e7ad
commit 1a1af4392a
1 changed files with 4 additions and 2 deletions

View File

@ -108,7 +108,7 @@ public:
Data == X.Data;
}
void dump() const;
LLVM_DUMP_METHOD void dump() const;
};
} // end anonymous namespace
@ -135,7 +135,9 @@ static inline raw_ostream &operator<<(raw_ostream &Out, BindingKey K) {
} // namespace llvm
LLVM_DUMP_METHOD void BindingKey::dump() const { llvm::errs() << *this; }
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
void BindingKey::dump() const { llvm::errs() << *this; }
#endif
//===----------------------------------------------------------------------===//
// Actual Store type.