The component-model [canonical ABI] is currently using import module names with empty strings. Remove the special cases for empty strings from WasmObjectFile.cpp so that they can pass through as-is.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Did you mean to title this "Allow import names and modules to be empty strings." ?
The change to the code here seems only to relate to the module and the not the name/field of the import, is that right? Were fields already allowed to be empty? In which case maybe the title should just be "Allow empty module names in imports?"
is the canonical ABI using empty fields or empty module names? (presumably one can't use both .. otherwise everything is the same import :)
lld/test/wasm/import-module-empty.ll | ||
---|---|---|
14 ↗ | (On Diff #457043) | We've been in the process of trying to re-write all wasm-ld tests in assembly for a while now. I think these should be easy enough to write in .s format? |
Actually perhaps we can just make this part of the existing lld/test/wasm/import-module.ll, and lld/test/wasm/import-name.ll tests.. i don't see why they shouldn't test the different edge cases in the single test file (if you do it that way I guess you can avoid re-writing them tests in assembly too :)
The actual change is just for module names. Empty fields were already supported. I've now updated the title.
is the canonical ABI using empty fields or empty module names? (presumably one can't use both .. otherwise everything is the same import :)
The canonical ABI is using empty module names for some things.
I've now done this :-).