From: NAKAMURA Takumi Date: Sat, 7 May 2016 04:51:51 +0000 (+0000) Subject: MipsELFObjectWriter.cpp: Activate debug printer just for +Asserts. [-Wunused-function] X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2dea1196164fa340b0817bb03dd53ab6fbfc32be;p=llvm MipsELFObjectWriter.cpp: Activate debug printer just for +Asserts. [-Wunused-function] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268848 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp b/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp index b471ee57081..d8516001b7e 100644 --- a/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp +++ b/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp @@ -41,10 +41,12 @@ struct MipsRelocationEntry { } }; +#ifndef NDEBUG raw_ostream &operator<<(raw_ostream &OS, const MipsRelocationEntry &RHS) { RHS.print(OS); return OS; } +#endif class MipsELFObjectWriter : public MCELFObjectTargetWriter { public: