-
- Downloads
[WebAssembly] Add first claass symbol table to wasm objects
This is combination of two patches by Nicholas Wilson: 1. https://reviews.llvm.org/D41954 2. https://reviews.llvm.org/D42495 Along with a few local modifications: - One change I made was to add the UNDEFINED bit to the binary format to avoid the extra byte used when writing data symbols. Although this bit is redundant for other symbols types (i.e. undefined can be implied if a function or global is a wasm import) - I prefer to be explicit and consistent and not have derived flags. - Some field renaming. - Some reverting of unrelated minor changes. - No test output differences. Differential Revision: https://reviews.llvm.org/D43147 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@325860 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/llvm/BinaryFormat/Wasm.h 34 additions, 17 deletionsinclude/llvm/BinaryFormat/Wasm.h
- include/llvm/MC/MCSectionWasm.h 6 additions, 6 deletionsinclude/llvm/MC/MCSectionWasm.h
- include/llvm/MC/MCSymbolWasm.h 18 additions, 3 deletionsinclude/llvm/MC/MCSymbolWasm.h
- include/llvm/Object/Wasm.h 37 additions, 44 deletionsinclude/llvm/Object/Wasm.h
- include/llvm/ObjectYAML/WasmYAML.h 13 additions, 2 deletionsinclude/llvm/ObjectYAML/WasmYAML.h
- lib/MC/MCWasmStreamer.cpp 2 additions, 2 deletionslib/MC/MCWasmStreamer.cpp
- lib/MC/WasmObjectWriter.cpp 160 additions, 132 deletionslib/MC/WasmObjectWriter.cpp
- lib/Object/WasmObjectFile.cpp 169 additions, 135 deletionslib/Object/WasmObjectFile.cpp
- lib/ObjectYAML/WasmYAML.cpp 27 additions, 2 deletionslib/ObjectYAML/WasmYAML.cpp
- lib/Target/WebAssembly/MCTargetDesc/WebAssemblyTargetStreamer.cpp 1 addition, 1 deletion...et/WebAssembly/MCTargetDesc/WebAssemblyTargetStreamer.cpp
- lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp 12 additions, 5 deletionslib/Target/WebAssembly/WebAssemblyMCInstLower.cpp
- test/MC/WebAssembly/array-fill.ll 6 additions, 2 deletionstest/MC/WebAssembly/array-fill.ll
- test/MC/WebAssembly/bss.ll 36 additions, 51 deletionstest/MC/WebAssembly/bss.ll
- test/MC/WebAssembly/comdat.ll 29 additions, 31 deletionstest/MC/WebAssembly/comdat.ll
- test/MC/WebAssembly/explicit-sections.ll 29 additions, 43 deletionstest/MC/WebAssembly/explicit-sections.ll
- test/MC/WebAssembly/func-address.ll 2 additions, 2 deletionstest/MC/WebAssembly/func-address.ll
- test/MC/WebAssembly/global-ctor-dtor.ll 63 additions, 48 deletionstest/MC/WebAssembly/global-ctor-dtor.ll
- test/MC/WebAssembly/reloc-code.ll 3 additions, 3 deletionstest/MC/WebAssembly/reloc-code.ll
- test/MC/WebAssembly/reloc-data.ll 1 addition, 1 deletiontest/MC/WebAssembly/reloc-data.ll
- test/MC/WebAssembly/sections.ll 0 additions, 6 deletionstest/MC/WebAssembly/sections.ll
Loading
Please register or sign in to comment