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

Commit a23e7ff

Browse files
authored
don't export all functions in relocatable modules in fastcomp (#234)
Leave that to the emcc driver to decide. See emscripten-core/emscripten#7319
1 parent 1af410b commit a23e7ff

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/Target/JSBackend/JSBackend.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -3409,7 +3409,6 @@ void JSWriter::printFunctionBody(const Function *F) {
34093409

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

0 commit comments

Comments
 (0)