Lines Matching refs:WasmSym
155 MCSymbolWasm *WasmSym = nullptr; in getMCSymbolForFunction() local
166 WasmSym = cast<MCSymbolWasm>( in getMCSymbolForFunction()
169 WasmSym = cast<MCSymbolWasm>(getSymbol(F)); in getMCSymbolForFunction()
171 return WasmSym; in getMCSymbolForFunction()
213 auto *WasmSym = cast<MCSymbolWasm>(GetExternalSymbolSymbol(Name)); in getOrCreateWasmSymbol() local
216 if (WasmSym->getType()) in getOrCreateWasmSymbol()
217 return WasmSym; in getOrCreateWasmSymbol()
230 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_GLOBAL); in getOrCreateWasmSymbol()
231 WasmSym->setGlobalType(wasm::WasmGlobalType{ in getOrCreateWasmSymbol()
235 return WasmSym; in getOrCreateWasmSymbol()
239 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_DATA); in getOrCreateWasmSymbol()
240 return WasmSym; in getOrCreateWasmSymbol()
246 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_TAG); in getOrCreateWasmSymbol()
253 WasmSym->setWeak(true); in getOrCreateWasmSymbol()
254 WasmSym->setExternal(true); in getOrCreateWasmSymbol()
265 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in getOrCreateWasmSymbol()
270 WasmSym->setSignature(Signature.get()); in getOrCreateWasmSymbol()
273 return WasmSym; in getOrCreateWasmSymbol()
307 auto *WasmSym = cast<MCSymbolWasm>(getOrCreateWasmSymbol(Name)); in emitDecls() local
308 if (WasmSym->isFunction()) { in emitDecls()
311 getTargetStreamer()->emitFunctionType(WasmSym); in emitDecls()
621 auto *WasmSym = cast<MCSymbolWasm>(CurrentFnSym); in emitFunctionBodyStart() local
622 WasmSym->setSignature(Signature.get()); in emitFunctionBodyStart()
624 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in emitFunctionBodyStart()
626 getTargetStreamer()->emitFunctionType(WasmSym); in emitFunctionBodyStart()