Add NDEBUG checks around LLVM_DUMP_METHOD functions for Wunused-function warnings.
llvm-svn: 318371
This commit is contained in:
parent
4d9a4d7ac8
commit
f18016c640
|
@ -259,6 +259,7 @@ void ArrayBoundCheckerV2::reportOOB(CheckerContext &checkerContext,
|
|||
llvm::make_unique<BugReport>(*BT, os.str(), errorNode));
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
LLVM_DUMP_METHOD void RegionRawOffsetV2::dump() const {
|
||||
dumpToStream(llvm::errs());
|
||||
}
|
||||
|
@ -266,7 +267,7 @@ LLVM_DUMP_METHOD void RegionRawOffsetV2::dump() const {
|
|||
void RegionRawOffsetV2::dumpToStream(raw_ostream &os) const {
|
||||
os << "raw_offset_v2{" << getRegion() << ',' << getByteOffset() << '}';
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
// Lazily computes a value to be used by 'computeOffset'. If 'val'
|
||||
// is unknown or undefined, we lazily substitute '0'. Otherwise,
|
||||
|
|
|
@ -134,7 +134,9 @@ namespace llvm {
|
|||
};
|
||||
} // end llvm namespace
|
||||
|
||||
#ifndef NDEBUG
|
||||
LLVM_DUMP_METHOD void BindingKey::dump() const { llvm::errs() << *this; }
|
||||
#endif
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Actual Store type.
|
||||
|
|
Loading…
Reference in New Issue