Lines Matching refs:WasmSym

153   MCSymbolWasm *WasmSym = nullptr;  in getMCSymbolForFunction()  local
164 WasmSym = cast<MCSymbolWasm>( in getMCSymbolForFunction()
167 WasmSym = cast<MCSymbolWasm>(getSymbol(F)); in getMCSymbolForFunction()
169 return WasmSym; in getMCSymbolForFunction()
211 auto *WasmSym = cast<MCSymbolWasm>(GetExternalSymbolSymbol(Name)); in getOrCreateWasmSymbol() local
214 if (WasmSym->getType()) in getOrCreateWasmSymbol()
215 return WasmSym; in getOrCreateWasmSymbol()
228 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_GLOBAL); in getOrCreateWasmSymbol()
229 WasmSym->setGlobalType(wasm::WasmGlobalType{ in getOrCreateWasmSymbol()
233 return WasmSym; in getOrCreateWasmSymbol()
237 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_DATA); in getOrCreateWasmSymbol()
238 return WasmSym; in getOrCreateWasmSymbol()
244 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_TAG); in getOrCreateWasmSymbol()
251 WasmSym->setWeak(true); in getOrCreateWasmSymbol()
252 WasmSym->setExternal(true); in getOrCreateWasmSymbol()
263 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in getOrCreateWasmSymbol()
268 WasmSym->setSignature(Signature.get()); in getOrCreateWasmSymbol()
271 return WasmSym; in getOrCreateWasmSymbol()
305 auto *WasmSym = cast<MCSymbolWasm>(getOrCreateWasmSymbol(Name.getKey())); in emitDecls() local
306 if (WasmSym->isFunction()) { in emitDecls()
309 getTargetStreamer()->emitFunctionType(WasmSym); in emitDecls()
576 auto *WasmSym = cast<MCSymbolWasm>(CurrentFnSym); in emitFunctionBodyStart() local
577 WasmSym->setSignature(Signature.get()); in emitFunctionBodyStart()
579 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in emitFunctionBodyStart()
581 getTargetStreamer()->emitFunctionType(WasmSym); in emitFunctionBodyStart()