summaryrefslogtreecommitdiff
path: root/src/wasm-linker.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-linker.h')
-rw-r--r--src/wasm-linker.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm-linker.h b/src/wasm-linker.h
index 663bb9e78..3700bb3ac 100644
--- a/src/wasm-linker.h
+++ b/src/wasm-linker.h
@@ -295,11 +295,11 @@ class Linker {
}
void exportFunction(Name name, bool must_export) {
- if (!out.wasm.checkFunction(name)) {
+ if (!out.wasm.getFunctionOrNull(name)) {
assert(!must_export);
return;
}
- if (out.wasm.checkExport(name)) return; // Already exported
+ if (out.wasm.getExportOrNull(name)) return; // Already exported
auto exp = new Export;
exp->name = exp->value = name;
exp->kind = ExternalKind::Function;