Lines Matching refs:Sym
128 MCSymbolWasm *Sym = cast_or_null<MCSymbolWasm>(Ctx.lookupSymbol(Name)); in getOrCreateFunctionTableSymbol() local
129 if (Sym) { in getOrCreateFunctionTableSymbol()
130 if (!Sym->isFunctionTable()) in getOrCreateFunctionTableSymbol()
133 Sym = cast<MCSymbolWasm>(Ctx.getOrCreateSymbol(Name)); in getOrCreateFunctionTableSymbol()
134 Sym->setFunctionTable(); in getOrCreateFunctionTableSymbol()
136 Sym->setUndefined(); in getOrCreateFunctionTableSymbol()
140 Sym->setOmitFromLinkingSection(); in getOrCreateFunctionTableSymbol()
141 return Sym; in getOrCreateFunctionTableSymbol()
147 MCSymbolWasm *Sym = cast_or_null<MCSymbolWasm>(Ctx.lookupSymbol(Name)); in getOrCreateFuncrefCallTableSymbol() local
148 if (Sym) { in getOrCreateFuncrefCallTableSymbol()
149 if (!Sym->isFunctionTable()) in getOrCreateFuncrefCallTableSymbol()
152 Sym = cast<MCSymbolWasm>(Ctx.getOrCreateSymbol(Name)); in getOrCreateFuncrefCallTableSymbol()
156 Sym->setWeak(true); in getOrCreateFuncrefCallTableSymbol()
160 Sym->setType(wasm::WASM_SYMBOL_TYPE_TABLE); in getOrCreateFuncrefCallTableSymbol()
161 Sym->setTableType(TableType); in getOrCreateFuncrefCallTableSymbol()
165 Sym->setOmitFromLinkingSection(); in getOrCreateFuncrefCallTableSymbol()
166 return Sym; in getOrCreateFuncrefCallTableSymbol()