summaryrefslogtreecommitdiff
path: root/src/s2wasm.h
diff options
context:
space:
mode:
authorjgravelle-google <jgravelle@google.com>2017-03-10 13:10:17 -0800
committerGitHub <noreply@github.com>2017-03-10 13:10:17 -0800
commit62e9f5d881e2d7e7f9f5da845ed2dbc176bc0bc5 (patch)
tree9ed29d721cafc8c3c70046ea4e072c7483cd66bd /src/s2wasm.h
parentd54c03e99f9a43bde1b6cec94f05b0af412d0e4f (diff)
downloadbinaryen-62e9f5d881e2d7e7f9f5da845ed2dbc176bc0bc5.tar.gz
binaryen-62e9f5d881e2d7e7f9f5da845ed2dbc176bc0bc5.tar.bz2
binaryen-62e9f5d881e2d7e7f9f5da845ed2dbc176bc0bc5.zip
Wasm h to cpp (#926)
* Move WasmType function implementations to wasm.cpp * Move Literal methods to wasm.cpp * Reorder wasm.cpp shared constants back to top * Move expression functions to wasm.cpp * Finish moving things to wasm.cpp * Split out Literal into its own .h/.cpp. Also factor out common wasm-type module * Remove unneeded/transitive includes from wasm.h * Add comment to try/check methods * Rename tryX/checkX methods to getXOrNull * Add missing include that should fix appveyor build breakage * More appveyor
Diffstat (limited to 'src/s2wasm.h')
-rw-r--r--src/s2wasm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index faa31ae92..31632c9dc 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -628,7 +628,7 @@ class S2WasmBuilder {
std::string sig = getSig(decl.get());
decl->name = "FUNCSIG$" + sig;
- FunctionType *ty = wasm->checkFunctionType(decl->name);
+ FunctionType *ty = wasm->getFunctionTypeOrNull(decl->name);
Name name = fixEmEHSjLjNames(rawName, sig);
if (!ty) {
// The wasm module takes ownership of the FunctionType if we insert it.