[llvm] r237807 - MC: Add MCSymbolData back to MCAssembler dump
Duncan P. N. Exon Smith
dexonsmith at apple.com
Wed May 20 09:34:36 PDT 2015
Author: dexonsmith
Date: Wed May 20 11:34:36 2015
New Revision: 237807
URL: http://llvm.org/viewvc/llvm-project?rev=237807&view=rev
Log:
MC: Add MCSymbolData back to MCAssembler dump
r237490 accidentally dropped MCSymbolData from the MCAssembler dump.
Add it back underneath the MCSymbol dump. Remove the MCSymbol dump from
MCSymbolData, since this would cause an infinite co-recursion, and
besides, that back pointer is going away.
Modified:
llvm/trunk/lib/MC/MCAssembler.cpp
Modified: llvm/trunk/lib/MC/MCAssembler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCAssembler.cpp?rev=237807&r1=237806&r2=237807&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCAssembler.cpp (original)
+++ llvm/trunk/lib/MC/MCAssembler.cpp Wed May 20 11:34:36 2015
@@ -1282,7 +1282,7 @@ void MCSectionData::dump() {
void MCSymbolData::dump() const {
raw_ostream &OS = llvm::errs();
- OS << "<MCSymbolData Symbol:" << getSymbol()
+ OS << "<MCSymbolData"
<< " Fragment:" << getFragment();
if (!isCommon())
OS << " Offset:" << getOffset();
@@ -1311,7 +1311,11 @@ void MCAssembler::dump() {
for (symbol_iterator it = symbol_begin(), ie = symbol_end(); it != ie; ++it) {
if (it != symbol_begin()) OS << ",\n ";
+ OS << "(";
it->dump();
+ OS << ",";
+ it->getData().dump();
+ OS << ")";
}
OS << "]>\n";
}
More information about the llvm-commits
mailing list