Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion llvm/include/llvm/Support/JSON.h
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,8 @@ class Value {
return LLVM_LIKELY(Type == T_Array) ? &as<json::Array>() : nullptr;
}

#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
void print(llvm::raw_ostream &OS) const;
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
LLVM_DUMP_METHOD void dump() const {
print(llvm::dbgs());
llvm::dbgs() << '\n';
Expand Down
2 changes: 0 additions & 2 deletions llvm/lib/Support/JSON.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,7 @@ void Value::destroy() {
}
}

#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
void Value::print(llvm::raw_ostream &OS) const { OS << *this; }
#endif // !NDEBUG || LLVM_ENABLE_DUMP

bool operator==(const Value &L, const Value &R) {
if (L.kind() != R.kind())
Expand Down