Allow sections to be placed into COMDAT groups, in addition to functions and data segments. Also make section symbols unnamed, which allows sections with identical names (section names are independent of their section symbols, but previously we gave the symbols the same name as their sections, which results in collisions when sections are identically-named).
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Looks great!
llvm/test/MC/WebAssembly/comdat-sections.ll | ||
---|---|---|
8 | Where does this name come from? |
This version basically just tests -fdebug-types-section end-to-end to YAML via comdats. (It probably needs more tests, suggestions are welcome)
I'm thinking it would be good to add assembly syntax so we can test just the MC and Object stuff separately from the debuginfo stuff. Not sure if that should be a separate change?
llvm/test/MC/WebAssembly/comdat-sections.ll | ||
---|---|---|
8 | The name is just the hash of the dwarf description of the type. So duplicate types will get duplicate names. |
I'm going to add assembly support in a separate change. So this change is ready for review; it has the end-to-end test, and when I add assembler support I'll add tests that go from ll -> asm and asm -> YAML
llvm/include/llvm/BinaryFormat/Wasm.h | ||
---|---|---|
334 | Can you upload a PR to tooling-conventions to add this ? |
Can you upload a PR to tooling-conventions to add this ?