When parsing assembly text directives such as .local, .weak, the symbols were
not marked as such in the internal symbol table. This lead to different output
depending on whether MCAsmStreamer or MCELFStreamer was. This patch
corrects such behaviour.
Details
Details
- Reviewers
vkalintiris
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Expanded MCSymbol<ELF/COFF/MachO> to dump internal state. Expanded MCContext to be able to dump the symbol table. Added a new hidden option -asm-show-symbol-table that prints out the symbol table just before the AsmParser finishes running.
Comment Actions
We should split this in two separate review requests, ie. one that introduces symbol dumping and another that marks local and weak symbols. Can you also add a separate test file just for checking the newly introduced -asm-show-symbol-table option?