Skip to content

Commit ff075d0

Browse files
committed
MCParser: Remove operator<< const MCParsedAsmOperand &MO
Printing an expression is error-prone without a MCAsmInfo argument. We will add a MCAsmInfo parameter to MCParsedAsmoperand::print.
1 parent 1949536 commit ff075d0

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

llvm/include/llvm/MC/MCParser/MCParsedAsmOperand.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,6 @@ class LLVM_ABI MCParsedAsmOperand {
9494
/// dump - Print to the debug stream.
9595
virtual void dump() const;
9696
};
97-
98-
//===----------------------------------------------------------------------===//
99-
// Debugging Support
100-
101-
inline raw_ostream& operator<<(raw_ostream &OS, const MCParsedAsmOperand &MO) {
102-
MO.print(OS);
103-
return OS;
104-
}
105-
10697
} // end namespace llvm
10798

10899
#endif // LLVM_MC_MCPARSER_MCPARSEDASMOPERAND_H

llvm/lib/MC/MCParser/MCAsmParser.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ bool MCAsmParser::parseGNUAttribute(SMLoc L, int64_t &Tag,
165165
void MCParsedAsmOperand::dump() const {
166166
// Cannot completely remove virtual function even in release mode.
167167
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
168-
dbgs() << " " << *this;
168+
dbgs() << " ";
169+
print(dbgs());
169170
#endif
170171
}

0 commit comments

Comments
 (0)