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 129143 include/llvm/BinaryFormat/Wasm.h
include/llvm/ObjectYAML/WasmYAML.h
lib/Object/WasmObjectFile.cpp
lib/ObjectYAML/WasmYAML.cpp
test/MC/WebAssembly/bss.ll
test/MC/WebAssembly/explicit-sections.ll
test/MC/WebAssembly/init-fini-array.ll
test/MC/WebAssembly/unnamed-data.ll
test/MC/WebAssembly/weak-alias.ll
test/ObjectYAML/wasm/code_section.yaml
test/ObjectYAML/wasm/export_section.yaml
test/ObjectYAML/wasm/global_section.yaml
test/ObjectYAML/wasm/import_section.yaml
test/ObjectYAML/wasm/linking_section.yaml
test/ObjectYAML/wasm/name_section.yaml
test/ObjectYAML/wasm/start_section.yaml
test/ObjectYAML/wasm/type_section.yaml
test/ObjectYAML/wasm/weak_symbols.yaml
test/tools/llvm-nm/wasm/exports.yaml
test/tools/llvm-nm/wasm/imports.yaml
test/tools/llvm-nm/wasm/weak-symbols.yaml
tools/obj2yaml/wasm2yaml.cpp
tools/yaml2obj/yaml2wasm.cpp
|