From 14ed198ff719bf851c10434500ec88740ffca30c Mon Sep 17 00:00:00 2001 From: Denis Protivensky Date: Tue, 7 Apr 2015 11:51:39 +0000 Subject: [PATCH] [ARM] Use getMappingAtomName in Release only llvm-svn: 234311 --- lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp b/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp index 987f13f..22bcb4d 100644 --- a/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp +++ b/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp @@ -62,6 +62,7 @@ static const uint8_t ARMPltVeneerAtomContent[4] = { 0x00, 0x00 // nop }; +#ifdef NDEBUG // Determine proper names for mapping symbols. static std::string getMappingAtomName(DefinedAtom::CodeModel model, const std::string &part) { @@ -76,6 +77,7 @@ static std::string getMappingAtomName(DefinedAtom::CodeModel model, llvm_unreachable("Wrong code model of mapping atom"); } } +#endif /// \brief Atoms that hold veneer code. class VeneerAtom : public SimpleELFDefinedAtom { -- 2.7.4