Its much easier to export it via setHidden(false), now that we have that mechanism.
As a side effect the start function is not longer always exports first (becuase
its being exported just like all the other function).
Paths
| Differential D42321
[WebAssembly] Remove special handling of entry point export. NFC ClosedPublic Authored by sbc100 on Jan 19 2018, 3:01 PM.
Details Summary Its much easier to export it via setHidden(false), now that we have that mechanism. As a side effect the start function is not longer always exports first (becuase
Diff Detail
Event TimelineHerald added subscribers: llvm-commits, sunfish, aheejin and 3 others. · View Herald TranscriptJan 19 2018, 3:01 PM sbc100 retitled this revision from [WebAssembly] Remove special handling of entry point export to [WebAssembly] Remove special handling of entry point export. NFC.Jan 19 2018, 3:17 PM Comment Actions You've removed the check for CtorSymbol == EntrySym, I guess because you can't think of a reason why anyone would want to do --entry=__wasm_init_ctors? But if we do ever make the entry-point be treated as the "start" function, then that might be what we want. This is good, because it gives --entry a clear reason to exist, but maybe it's not generic enough. Apart for the setHidden(false) call, is --entry identical to --export? So really --entry is redundant now, maybe it should actually go away. Go ahead though and merge, I'm just musing here. This revision is now accepted and ready to land.Jan 19 2018, 4:49 PM Comment Actions
Oh.. maybe you are right.. let me right a test for that. I though that wasn't needed anymore. Closed by commit rLLD323025: [WebAssembly] Remove special handling of entry point export. (authored by sbc). · Explain WhyJan 19 2018, 5:46 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 130702 test/wasm/alias.ll
test/wasm/call-indirect.ll
test/wasm/export.ll
test/wasm/stack-pointer.ll
test/wasm/visibility-hidden.ll
test/wasm/weak-alias-overide.ll
test/wasm/weak-undefined.ll
wasm/Driver.cpp
wasm/Writer.cpp
|