diff options
author | Sam Clegg <sbc@chromium.org> | 2020-08-04 14:16:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-04 14:16:01 -0700 |
commit | a82ad5d060f29b68affefa2ca7a47bf2d9451af1 (patch) | |
tree | aff848f362f250fb8498a4e3e16b9cd97c2baead /src/wasm | |
parent | d78c794ffd61946bf2035042cbda082f042272db (diff) | |
download | binaryen-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.cpp | 11 |
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. |