From 2e4be0ad0368733b0effbcbe94a3cc52c4a01422 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 27 May 2015 15:18:34 +0000 Subject: [PATCH] Fix NDEBUG build. llvm-svn: 238332 --- llvm/lib/MC/MCSection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/MC/MCSection.cpp b/llvm/lib/MC/MCSection.cpp index 26c6aad..04f932b 100644 --- a/llvm/lib/MC/MCSection.cpp +++ b/llvm/lib/MC/MCSection.cpp @@ -84,6 +84,7 @@ MCSection::getSubsectionInsertionPoint(unsigned Subsection) { return IP; } +#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) void MCSection::dump() { raw_ostream &OS = llvm::errs(); @@ -96,6 +97,7 @@ void MCSection::dump() { } OS << "]>"; } +#endif MCSection::iterator MCSection::begin() { return Fragments.begin(); } -- 2.7.4