forked from OSchip/llvm-project
Fix unused function build error in lld
The lld-x86_64-darwin13 is failing with: error: unused function 'operator<<' Wrap the declation in ifndef NDEBUG, which matches what is done in MipsELFObjectWriter.cpp. Differential Revision: https://reviews.llvm.org/D34384 llvm-svn: 305771
This commit is contained in:
parent
7f055dee27
commit
1fb8daa69a
|
@ -162,10 +162,12 @@ struct WasmRelocationEntry {
|
|||
#endif
|
||||
};
|
||||
|
||||
#if !defined(NDEBUG)
|
||||
raw_ostream &operator<<(raw_ostream &OS, const WasmRelocationEntry &Rel) {
|
||||
Rel.print(OS);
|
||||
return OS;
|
||||
}
|
||||
#endif
|
||||
|
||||
class WasmObjectWriter : public MCObjectWriter {
|
||||
/// Helper struct for containing some precomputed information on symbols.
|
||||
|
|
Loading…
Reference in New Issue