mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
20cf3f41e7
commit
91a675f972
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user