diff options
author | Fangrui Song <i@maskray.me> | 2025-06-28 22:47:38 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2025-06-28 22:47:38 -0700 |
commit | 2661d595793c422fa98fa320cc6a7838d2c0e09c (patch) | |
tree | eb2551e393dc308560503863a4efc3e618bbb531 /llvm/lib/MC/MCAssembler.cpp | |
parent | 279e808b75119173a0b0ab9e4a48091e8dbe8193 (diff) | |
download | llvm-2661d595793c422fa98fa320cc6a7838d2c0e09c.zip llvm-2661d595793c422fa98fa320cc6a7838d2c0e09c.tar.gz llvm-2661d595793c422fa98fa320cc6a7838d2c0e09c.tar.bz2 |
MC: Remove post-relaxation and Symbol printing from mc-dump output
The "Symbol" stanza includes symbol names with all zero indexes. which
are not useful.
The "assembler backend - post-relaxation" part is not useful. Only
Hexagon (and X86 when x86-pad-for-align is set) might change the layout
between "post-relaxation" and "final-layout". From my experience
debugging the two passes requires more dumping code not served by the
output.
Diffstat (limited to 'llvm/lib/MC/MCAssembler.cpp')
-rw-r--r-- | llvm/lib/MC/MCAssembler.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp index a331ec8..1d6b1f0 100644 --- a/llvm/lib/MC/MCAssembler.cpp +++ b/llvm/lib/MC/MCAssembler.cpp @@ -848,10 +848,6 @@ void MCAssembler::layout() { if (getContext().hadError()) return; - DEBUG_WITH_TYPE("mc-dump", { - errs() << "assembler backend - post-relaxation\n--\n"; - dump(); }); - // Some targets might want to adjust fragment offsets. If so, perform another // layout iteration. if (getBackend().finishLayout(*this)) @@ -1275,25 +1271,10 @@ LLVM_DUMP_METHOD void MCAssembler::dump() const{ raw_ostream &OS = errs(); OS << "Sections:["; - bool First = true; for (const MCSection &Sec : *this) { OS << '\n'; Sec.dump(); } OS << "\n]\n"; - OS << "Symbols:[\n"; - - First = true; - for (const MCSymbol &Sym : symbols()) { - if (First) - First = false; - else - OS << "\n"; - OS << "("; - Sym.dump(); - OS << ", Index:" << Sym.getIndex() << ", "; - OS << ")"; - } - OS << "\n]\n"; } #endif |