This is useful for emscripten or other tools that want to
selectively exports symbols without necessarily changing the
source code.
In particular it can be useful to export __wasm_call_ctors and
call it from the outside.
Paths
| Differential D42003
[WebAssembly] Add --export flag to force a symbol to be exported ClosedPublic Authored by sbc100 on Jan 12 2018, 11:07 AM.
Details Summary This is useful for emscripten or other tools that want to In particular it can be useful to export __wasm_call_ctors and
Diff Detail
Event TimelineHerald added subscribers: llvm-commits, sunfish, aheejin and 3 others. · View Herald TranscriptJan 12 2018, 11:07 AM
This revision is now accepted and ready to land.Jan 12 2018, 1:59 PM Closed by commit rLLD322408: [WebAssembly] Add --export flag to force a symbol to be exported (authored by sbc). · Explain WhyJan 12 2018, 2:11 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 129705 test/wasm/export.ll
wasm/Driver.cpp
wasm/Options.td
wasm/Symbols.h
wasm/Symbols.cpp
|
This is more common way of doing the same thing: