summaryrefslogtreecommitdiffstats
path: root/lld/wasm/Driver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/wasm/Driver.cpp')
-rw-r--r--lld/wasm/Driver.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/lld/wasm/Driver.cpp b/lld/wasm/Driver.cpp
index 9a42fa1d2c0..34801c1b50e 100644
--- a/lld/wasm/Driver.cpp
+++ b/lld/wasm/Driver.cpp
@@ -441,10 +441,8 @@ static Symbol *handleUndefined(StringRef name) {
static UndefinedGlobal *
createUndefinedGlobal(StringRef name, llvm::wasm::WasmGlobalType *type) {
- auto *sym =
- cast<UndefinedGlobal>(symtab->addUndefinedGlobal(name, name,
- defaultModule, 0,
- nullptr, type));
+ auto *sym = cast<UndefinedGlobal>(symtab->addUndefinedGlobal(
+ name, name, defaultModule, WASM_SYMBOL_UNDEFINED, nullptr, type));
config->allowUndefinedSymbols.insert(sym->getName());
sym->isUsedInRegularObj = true;
return sym;
@@ -582,7 +580,8 @@ struct WrappedSymbol {
};
static Symbol *addUndefined(StringRef name) {
- return symtab->addUndefinedFunction(name, "", "", 0, nullptr, nullptr, false);
+ return symtab->addUndefinedFunction(name, "", "", WASM_SYMBOL_UNDEFINED,
+ nullptr, nullptr, false);
}
// Handles -wrap option.
OpenPOWER on IntegriCloud