forked from OSchip/llvm-project
[analyzer] Fix -Wunused-function in NDEBUG builds with #ifdef LLVM_DUMP_METHOD
llvm-svn: 366663
This commit is contained in:
parent
ee5dc7e7ad
commit
1a1af4392a
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue