summaryrefslogtreecommitdiff
path: root/src/wasm
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2019-04-25 07:50:15 -0700
committerGitHub <noreply@github.com>2019-04-25 07:50:15 -0700
commit09945884f7461135286357d14f993f9b5c5a329b (patch)
tree91e9940c495469d4029bacc3576a97bb8b215908 /src/wasm
parentc3ed0f176b36a502ef2e1fd915550a808b8d8f0b (diff)
downloadbinaryen-09945884f7461135286357d14f993f9b5c5a329b.tar.gz
binaryen-09945884f7461135286357d14f993f9b5c5a329b.tar.bz2
binaryen-09945884f7461135286357d14f993f9b5c5a329b.zip
Remove f32 legalization from LegalizeJSInterface (#2052)
As well as i64 splitting this pass was also converting f32 to f64 at the wasm boundry. However it appears this is not actually useful and makes somethings (such as dynamic linking) harder.
Diffstat (limited to 'src/wasm')
-rw-r--r--src/wasm/wasm-emscripten.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm/wasm-emscripten.cpp b/src/wasm/wasm-emscripten.cpp
index 680e145b4..a66c8d1ac 100644
--- a/src/wasm/wasm-emscripten.cpp
+++ b/src/wasm/wasm-emscripten.cpp
@@ -241,6 +241,9 @@ Function* EmscriptenGlueGenerator::generateAssignGOTEntriesFunction() {
} else {
ImportInfo info(wasm);
f = info.getImportedFunction(ENV, g->base);
+ if (!f) {
+ Fatal() << "GOT.func entry with no import/export: " << g->base;
+ }
}
Name getter((std::string("fp$") + g->base.c_str() + std::string("$") + getSig(f)).c_str());