diff options
Diffstat (limited to 'lld/wasm/Writer.cpp')
| -rw-r--r-- | lld/wasm/Writer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/wasm/Writer.cpp b/lld/wasm/Writer.cpp index 70d52bdb72d..41562e3c532 100644 --- a/lld/wasm/Writer.cpp +++ b/lld/wasm/Writer.cpp @@ -175,7 +175,7 @@ void Writer::createImportSection() { Import.Field = Sym->getName(); if (auto *FunctionSym = dyn_cast<FunctionSymbol>(Sym)) { Import.Kind = WASM_EXTERNAL_FUNCTION; - Import.SigIndex = lookupType(*FunctionSym->getFunctionType()); + Import.SigIndex = lookupType(*FunctionSym->FunctionType); } else { auto *GlobalSym = cast<GlobalSymbol>(Sym); Import.Kind = WASM_EXTERNAL_GLOBAL; @@ -850,7 +850,7 @@ void Writer::calculateTypes() { for (const Symbol *Sym : ImportedSymbols) if (auto *F = dyn_cast<FunctionSymbol>(Sym)) - registerType(*F->getFunctionType()); + registerType(*F->FunctionType); for (const InputFunction *F : InputFunctions) registerType(F->Signature); @@ -993,7 +993,7 @@ void Writer::calculateInitFunctions() { const WasmLinkingData &L = File->getWasmObj()->linkingData(); for (const WasmInitFunc &F : L.InitFunctions) { FunctionSymbol *Sym = File->getFunctionSymbol(F.Symbol); - if (*Sym->getFunctionType() != WasmSignature{{}, WASM_TYPE_NORESULT}) + if (*Sym->FunctionType != WasmSignature{{}, WASM_TYPE_NORESULT}) error("invalid signature for init func: " + toString(*Sym)); InitFunctions.emplace_back(WasmInitEntry{Sym, F.Priority}); } |

