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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237807 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2015-05-20 16:34:36 +00:00
parent 20cf3f41e7
commit 91a675f972

View File

@ -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";
}