[llvm] [llvm-mc] Don't print initial .text for disassembler (PR #120185)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 16 22:14:32 PST 2024
================
@@ -169,7 +169,7 @@ int Disassembler::disassemble(const Target &T, const std::string &Triple,
}
// Set up initial section manually here
- Streamer.initSections(false, STI);
+ Streamer.switchSectionNoPrint(Ctx.getObjectFileInfo()->getTextSection());
----------------
s-barannikov wrote:
Not sure why should init sections / switch to text at all. What would happen if we just remove this line?
NB
There is a similar place in llvm-ml, might be worth fixing as well.
https://github.com/llvm/llvm-project/pull/120185
More information about the llvm-commits
mailing list