mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[MC] Remove guard(s). NFCI.
All the methods are already marked with LLVM_DUMP_METHOD. llvm-svn: 279428
This commit is contained in:
parent
a42e6307f2
commit
63fca85488
@ -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
|
||||
|
||||
/* *** */
|
||||
|
||||
|
@ -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
|
||||
|
@ -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 << "<MCInst " << getOpcode();
|
||||
@ -65,9 +63,7 @@ void MCInst::dump_pretty(raw_ostream &OS, const MCInstPrinter *Printer,
|
||||
OS << ">";
|
||||
}
|
||||
|
||||
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
|
||||
LLVM_DUMP_METHOD void MCInst::dump() const {
|
||||
print(dbgs());
|
||||
dbgs() << "\n";
|
||||
}
|
||||
#endif
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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(); }
|
||||
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
|
@ -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.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user