From: Davide Italiano Date: Mon, 22 Aug 2016 11:55:22 +0000 (+0000) Subject: [MC] Remove guard(s). NFCI. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80d379f228409f8d8481a265e04bcb5e082c0e74;p=platform%2Fupstream%2Fllvm.git [MC] Remove guard(s). NFCI. All the methods are already marked with LLVM_DUMP_METHOD. llvm-svn: 279428 --- diff --git a/llvm/lib/MC/MCExpr.cpp b/llvm/lib/MC/MCExpr.cpp index 6f90ff8..c157c16 100644 --- a/llvm/lib/MC/MCExpr.cpp +++ b/llvm/lib/MC/MCExpr.cpp @@ -129,12 +129,10 @@ void MCExpr::print(raw_ostream &OS, const MCAsmInfo *MAI, bool InParens) const { llvm_unreachable("Invalid expression kind!"); } -#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) LLVM_DUMP_METHOD void MCExpr::dump() const { dbgs() << *this; dbgs() << '\n'; } -#endif /* *** */ diff --git a/llvm/lib/MC/MCFragment.cpp b/llvm/lib/MC/MCFragment.cpp index 1eb1d2996..eae0dfe 100644 --- a/llvm/lib/MC/MCFragment.cpp +++ b/llvm/lib/MC/MCFragment.cpp @@ -315,7 +315,6 @@ raw_ostream &operator<<(raw_ostream &OS, const MCFixup &AF) { } -#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) LLVM_DUMP_METHOD void MCFragment::dump() { raw_ostream &OS = llvm::errs(); @@ -475,4 +474,3 @@ LLVM_DUMP_METHOD void MCAssembler::dump() { } OS << "]>\n"; } -#endif diff --git a/llvm/lib/MC/MCInst.cpp b/llvm/lib/MC/MCInst.cpp index 16bc597..2da8ecc 100644 --- a/llvm/lib/MC/MCInst.cpp +++ b/llvm/lib/MC/MCInst.cpp @@ -34,12 +34,10 @@ void MCOperand::print(raw_ostream &OS) const { OS << ">"; } -#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) LLVM_DUMP_METHOD void MCOperand::dump() const { print(dbgs()); dbgs() << "\n"; } -#endif void MCInst::print(raw_ostream &OS) const { OS << ""; } -#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) LLVM_DUMP_METHOD void MCInst::dump() const { print(dbgs()); dbgs() << "\n"; } -#endif diff --git a/llvm/lib/MC/MCLabel.cpp b/llvm/lib/MC/MCLabel.cpp index d973fc9..b443cbb 100644 --- a/llvm/lib/MC/MCLabel.cpp +++ b/llvm/lib/MC/MCLabel.cpp @@ -16,8 +16,6 @@ void MCLabel::print(raw_ostream &OS) const { OS << '"' << getInstance() << '"'; } -#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) LLVM_DUMP_METHOD void MCLabel::dump() const { print(dbgs()); } -#endif diff --git a/llvm/lib/MC/MCParser/MCAsmParser.cpp b/llvm/lib/MC/MCParser/MCAsmParser.cpp index dc7a3f0..3576ed0 100644 --- a/llvm/lib/MC/MCParser/MCAsmParser.cpp +++ b/llvm/lib/MC/MCParser/MCAsmParser.cpp @@ -44,7 +44,5 @@ bool MCAsmParser::parseExpression(const MCExpr *&Res) { } LLVM_DUMP_METHOD void MCParsedAsmOperand::dump() const { -#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) dbgs() << " " << *this; -#endif } diff --git a/llvm/lib/MC/MCSection.cpp b/llvm/lib/MC/MCSection.cpp index 32e4cce..c5e4077 100644 --- a/llvm/lib/MC/MCSection.cpp +++ b/llvm/lib/MC/MCSection.cpp @@ -85,7 +85,6 @@ MCSection::getSubsectionInsertionPoint(unsigned Subsection) { return IP; } -#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) LLVM_DUMP_METHOD void MCSection::dump() { raw_ostream &OS = llvm::errs(); @@ -98,7 +97,6 @@ LLVM_DUMP_METHOD void MCSection::dump() { } OS << "]>"; } -#endif MCSection::iterator MCSection::begin() { return Fragments.begin(); } diff --git a/llvm/lib/MC/MCSymbol.cpp b/llvm/lib/MC/MCSymbol.cpp index 2ddece6..52f0532 100644 --- a/llvm/lib/MC/MCSymbol.cpp +++ b/llvm/lib/MC/MCSymbol.cpp @@ -76,6 +76,4 @@ void MCSymbol::print(raw_ostream &OS, const MCAsmInfo *MAI) const { OS << '"'; } -#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) LLVM_DUMP_METHOD void MCSymbol::dump() const { dbgs() << *this; } -#endif diff --git a/llvm/lib/MC/MCValue.cpp b/llvm/lib/MC/MCValue.cpp index 32a6adb..c1336d6 100644 --- a/llvm/lib/MC/MCValue.cpp +++ b/llvm/lib/MC/MCValue.cpp @@ -37,11 +37,9 @@ void MCValue::print(raw_ostream &OS) const { OS << " + " << getConstant(); } -#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) LLVM_DUMP_METHOD void MCValue::dump() const { print(dbgs()); } -#endif MCSymbolRefExpr::VariantKind MCValue::getAccessVariant() const { const MCSymbolRefExpr *B = getSymB(); diff --git a/llvm/lib/MC/SubtargetFeature.cpp b/llvm/lib/MC/SubtargetFeature.cpp index a97cd1d..32f06f8 100644 --- a/llvm/lib/MC/SubtargetFeature.cpp +++ b/llvm/lib/MC/SubtargetFeature.cpp @@ -282,13 +282,11 @@ void SubtargetFeatures::print(raw_ostream &OS) const { OS << "\n"; } -#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) /// dump - Dump feature info. /// LLVM_DUMP_METHOD void SubtargetFeatures::dump() const { print(dbgs()); } -#endif /// Adds the default features for the specified target triple. ///