Lines Matching refs:Sym
106 MCSymbolWasm *Sym = cast_or_null<MCSymbolWasm>(Ctx.lookupSymbol(Name)); in getOrCreateFunctionTableSymbol() local
107 if (Sym) { in getOrCreateFunctionTableSymbol()
108 if (!Sym->isFunctionTable()) in getOrCreateFunctionTableSymbol()
111 Sym = cast<MCSymbolWasm>(Ctx.getOrCreateSymbol(Name)); in getOrCreateFunctionTableSymbol()
112 Sym->setFunctionTable(); in getOrCreateFunctionTableSymbol()
114 Sym->setUndefined(); in getOrCreateFunctionTableSymbol()
118 Sym->setOmitFromLinkingSection(); in getOrCreateFunctionTableSymbol()
119 return Sym; in getOrCreateFunctionTableSymbol()
125 MCSymbolWasm *Sym = cast_or_null<MCSymbolWasm>(Ctx.lookupSymbol(Name)); in getOrCreateFuncrefCallTableSymbol() local
126 if (Sym) { in getOrCreateFuncrefCallTableSymbol()
127 if (!Sym->isFunctionTable()) in getOrCreateFuncrefCallTableSymbol()
130 Sym = cast<MCSymbolWasm>(Ctx.getOrCreateSymbol(Name)); in getOrCreateFuncrefCallTableSymbol()
134 Sym->setWeak(true); in getOrCreateFuncrefCallTableSymbol()
138 Sym->setType(wasm::WASM_SYMBOL_TYPE_TABLE); in getOrCreateFuncrefCallTableSymbol()
139 Sym->setTableType(TableType); in getOrCreateFuncrefCallTableSymbol()
143 Sym->setOmitFromLinkingSection(); in getOrCreateFuncrefCallTableSymbol()
144 return Sym; in getOrCreateFuncrefCallTableSymbol()