redstar wrote: I refactored the code in the suggested way. Some notes:
- I section to emit the code/data is either the ED or the PR. The other sections are linked via the `Parent` pointer. `MCGOFFStreamer::changeSection()` makes sure that all sections are registered in the correct order. - I use the ordinal number +1 of the section as the section number, but still need a counter for the symbols. - I still need to check that the LD symbols are emitted in the correct order. - The textual output is currently not correct. https://github.com/llvm/llvm-project/pull/133799 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits