summaryrefslogtreecommitdiff
path: root/src/wasm
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2020-08-04 14:16:01 -0700
committerGitHub <noreply@github.com>2020-08-04 14:16:01 -0700
commita82ad5d060f29b68affefa2ca7a47bf2d9451af1 (patch)
treeaff848f362f250fb8498a4e3e16b9cd97c2baead /src/wasm
parentd78c794ffd61946bf2035042cbda082f042272db (diff)
downloadbinaryen-a82ad5d060f29b68affefa2ca7a47bf2d9451af1.tar.gz
binaryen-a82ad5d060f29b68affefa2ca7a47bf2d9451af1.tar.bz2
binaryen-a82ad5d060f29b68affefa2ca7a47bf2d9451af1.zip
Move generateDynCallThunks into its own pass. NFC. (#3000)
The core logic is still living in EmscriptenGlueGenerator because its used also by fixInvokeFunctionNames. As a followup we can figure out how to make these more independent.
Diffstat (limited to 'src/wasm')
-rw-r--r--src/wasm/wasm-emscripten.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/wasm/wasm-emscripten.cpp b/src/wasm/wasm-emscripten.cpp
index f37bfe907..e4664e645 100644
--- a/src/wasm/wasm-emscripten.cpp
+++ b/src/wasm/wasm-emscripten.cpp
@@ -171,17 +171,6 @@ void EmscriptenGlueGenerator::generateDynCallThunk(Signature sig) {
exportFunction(wasm, f->name, true);
}
-void EmscriptenGlueGenerator::generateDynCallThunks() {
- Builder builder(wasm);
- std::vector<Name> tableSegmentData;
- if (wasm.table.segments.size() > 0) {
- tableSegmentData = wasm.table.segments[0].data;
- }
- for (const auto& indirectFunc : tableSegmentData) {
- generateDynCallThunk(wasm.getFunction(indirectFunc)->sig);
- }
-}
-
// lld can sometimes produce a build with an imported mutable __stack_pointer
// (i.e. when linking with -fpie). This method internalizes the
// __stack_pointer and initializes it from an immutable global instead.