Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

don't export all functions in relocatable modules in fastcomp #234

Merged
merged 1 commit into from
Oct 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lib/Target/JSBackend/JSBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3404,7 +3404,6 @@ void JSWriter::printFunctionBody(const Function *F) {

if (Relocatable) {
if (!F->hasInternalLinkage()) {
Exports.push_back(getJSName(F));
// In wasm shared module mode with emulated function pointers, put all exported functions in the table. That lets us
// use a simple i64-based ABI for everything, using function pointers for dlsym etc. (otherwise, if we used an
// export which is callable by JS - not using the i64 ABI - that would not be a proper function pointer for
Expand Down