From cd82beb59f2b60fe6aaf30cfe1bc993017c379b4 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 19 Oct 2018 17:01:28 -0700 Subject: [PATCH] don't export all functions in relocatable modules in fastcomp - leave that to the emcc driver to decide --- lib/Target/JSBackend/JSBackend.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Target/JSBackend/JSBackend.cpp b/lib/Target/JSBackend/JSBackend.cpp index 04bf7eeb8e6..71569e1e354 100644 --- a/lib/Target/JSBackend/JSBackend.cpp +++ b/lib/Target/JSBackend/JSBackend.cpp @@ -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