Lines Matching refs:Sym
103 MCSymbolWasm *Sym = cast_or_null<MCSymbolWasm>(Ctx.lookupSymbol(Name)); in getOrCreateFunctionTableSymbol() local
104 if (Sym) { in getOrCreateFunctionTableSymbol()
105 if (!Sym->isFunctionTable()) in getOrCreateFunctionTableSymbol()
108 Sym = cast<MCSymbolWasm>(Ctx.getOrCreateSymbol(Name)); in getOrCreateFunctionTableSymbol()
109 Sym->setFunctionTable(); in getOrCreateFunctionTableSymbol()
111 Sym->setUndefined(); in getOrCreateFunctionTableSymbol()
115 Sym->setOmitFromLinkingSection(); in getOrCreateFunctionTableSymbol()
116 return Sym; in getOrCreateFunctionTableSymbol()
122 MCSymbolWasm *Sym = cast_or_null<MCSymbolWasm>(Ctx.lookupSymbol(Name)); in getOrCreateFuncrefCallTableSymbol() local
123 if (Sym) { in getOrCreateFuncrefCallTableSymbol()
124 if (!Sym->isFunctionTable()) in getOrCreateFuncrefCallTableSymbol()
127 Sym = cast<MCSymbolWasm>(Ctx.getOrCreateSymbol(Name)); in getOrCreateFuncrefCallTableSymbol()
131 Sym->setWeak(true); in getOrCreateFuncrefCallTableSymbol()
135 Sym->setType(wasm::WASM_SYMBOL_TYPE_TABLE); in getOrCreateFuncrefCallTableSymbol()
136 Sym->setTableType(TableType); in getOrCreateFuncrefCallTableSymbol()
140 Sym->setOmitFromLinkingSection(); in getOrCreateFuncrefCallTableSymbol()
141 return Sym; in getOrCreateFuncrefCallTableSymbol()