Lines Matching refs:WasmSym
159 MCSymbolWasm *WasmSym = nullptr; in getMCSymbolForFunction() local
170 WasmSym = cast<MCSymbolWasm>( in getMCSymbolForFunction()
173 WasmSym = cast<MCSymbolWasm>(getSymbol(F)); in getMCSymbolForFunction()
175 return WasmSym; in getMCSymbolForFunction()
217 auto *WasmSym = cast<MCSymbolWasm>(GetExternalSymbolSymbol(Name)); in getOrCreateWasmSymbol() local
220 if (WasmSym->getType()) in getOrCreateWasmSymbol()
221 return WasmSym; in getOrCreateWasmSymbol()
234 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_GLOBAL); in getOrCreateWasmSymbol()
235 WasmSym->setGlobalType(wasm::WasmGlobalType{ in getOrCreateWasmSymbol()
239 return WasmSym; in getOrCreateWasmSymbol()
243 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_DATA); in getOrCreateWasmSymbol()
244 return WasmSym; in getOrCreateWasmSymbol()
250 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_TAG); in getOrCreateWasmSymbol()
257 WasmSym->setWeak(true); in getOrCreateWasmSymbol()
258 WasmSym->setExternal(true); in getOrCreateWasmSymbol()
269 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in getOrCreateWasmSymbol()
275 WasmSym->setSignature(Signature); in getOrCreateWasmSymbol()
277 return WasmSym; in getOrCreateWasmSymbol()
311 auto *WasmSym = cast<MCSymbolWasm>(getOrCreateWasmSymbol(Name)); in emitDecls() local
312 if (WasmSym->isFunction()) { in emitDecls()
315 getTargetStreamer()->emitFunctionType(WasmSym); in emitDecls()
621 auto *WasmSym = cast<MCSymbolWasm>(CurrentFnSym); in emitFunctionBodyStart() local
622 WasmSym->setSignature(Signature); in emitFunctionBodyStart()
623 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in emitFunctionBodyStart()
625 getTargetStreamer()->emitFunctionType(WasmSym); in emitFunctionBodyStart()