Rather than add a new attribute for forcing the symbol to be alive and exported
in the final wasm binary we can use the existing llvm.used/no_dead_strip
mechanism.
See https://github.com/WebAssembly/tool-conventions/issues/64
Paths
| Differential D57864
[WebAssembly] Add symbol flag to the binary format corresponding to llvm.used ClosedPublic Authored by sbc100 on Feb 6 2019, 4:21 PM.
Details Summary Rather than add a new attribute for forcing the symbol to be alive and exported See https://github.com/WebAssembly/tool-conventions/issues/64
Diff Detail
Event Timelinesbc100 retitled this revision from [WebAssembly] Add symbol flag to the binary format llvm.used to [WebAssembly] Add symbol flag to the binary format corresponding to llvm.used.Feb 6 2019, 4:35 PM This revision is now accepted and ready to land.Feb 6 2019, 5:14 PM Closed by commit rL353360: [WebAssembly] Add symbol flag to the binary format llvm.used (authored by sbc). · Explain WhyFeb 6 2019, 5:24 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 185682 include/llvm/BinaryFormat/Wasm.h
include/llvm/MC/MCSymbolWasm.h
lib/MC/MCAsmInfoWasm.cpp
lib/MC/MCWasmStreamer.cpp
lib/MC/WasmObjectWriter.cpp
lib/ObjectYAML/WasmYAML.cpp
test/MC/WebAssembly/no-dead-strip.ll
tools/llvm-readobj/WasmDumper.cpp
|