I don't think blank name is an appropriate default, but is this code
correct in the first place? Don't Code and data segments have name
in WebAssembly?
Details
Details
- Reviewers
sbc100
Diff Detail
Diff Detail
- Build Status
Buildable 15398 Build 15398: arc lint + arc unit
Event Timeline
Comment Actions
Hmm. I wonder if its worth making a CustomSection subclass. Names make no sense unless the type is WASM_SEC_CUSTOM so perhaps the baseclass could take only a type and the custom section could take only a string, otherwise this is going to lead to all the section constructors passing empty string. See Writer::createSyntheticSection too.
Comment Actions
In answer to your question in the description. No, the only sections that have names are the custom sections. The 10 different types of builtin section can only occur once and are identified by number only.