These indexes are useful because they are not always zero based and functions and
globals are referenced elsewhere by their index.
This matches what we already do for the type index space.
Paths
| Differential D41877
[WebAssembly] Explicitly specify function/global index space in YAML ClosedPublic Authored by sbc100 on Jan 9 2018, 12:19 PM.
Details Summary These indexes are useful because they are not always zero based and functions and This matches what we already do for the type index space.
Diff Detail
Event TimelineHerald added subscribers: sunfish, aheejin, jgravelle-google and 2 others. · View Herald TranscriptJan 9 2018, 12:19 PM This revision is now accepted and ready to land.Jan 9 2018, 12:54 PM Closed by commit rL322121: [WebAssembly] Explicitly specify function/global index space in YAML (authored by sbc). · Explain WhyJan 9 2018, 1:40 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 129155 llvm/trunk/include/llvm/BinaryFormat/Wasm.h
llvm/trunk/include/llvm/ObjectYAML/WasmYAML.h
llvm/trunk/lib/Object/WasmObjectFile.cpp
llvm/trunk/lib/ObjectYAML/WasmYAML.cpp
llvm/trunk/test/MC/WebAssembly/bss.ll
llvm/trunk/test/MC/WebAssembly/explicit-sections.ll
llvm/trunk/test/MC/WebAssembly/init-fini-array.ll
llvm/trunk/test/MC/WebAssembly/unnamed-data.ll
llvm/trunk/test/MC/WebAssembly/weak-alias.ll
llvm/trunk/test/ObjectYAML/wasm/code_section.yaml
llvm/trunk/test/ObjectYAML/wasm/export_section.yaml
llvm/trunk/test/ObjectYAML/wasm/global_section.yaml
llvm/trunk/test/ObjectYAML/wasm/import_section.yaml
llvm/trunk/test/ObjectYAML/wasm/linking_section.yaml
llvm/trunk/test/ObjectYAML/wasm/name_section.yaml
llvm/trunk/test/ObjectYAML/wasm/start_section.yaml
llvm/trunk/test/ObjectYAML/wasm/type_section.yaml
llvm/trunk/test/ObjectYAML/wasm/weak_symbols.yaml
llvm/trunk/test/tools/llvm-nm/wasm/exports.yaml
llvm/trunk/test/tools/llvm-nm/wasm/imports.yaml
llvm/trunk/test/tools/llvm-nm/wasm/weak-symbols.yaml
llvm/trunk/tools/obj2yaml/wasm2yaml.cpp
llvm/trunk/tools/yaml2obj/yaml2wasm.cpp
|