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()
112 Sym = cast<MCSymbolWasm>(Ctx.getOrCreateSymbol(Name)); in getOrCreateFunctionTableSymbol()
113 Sym->setFunctionTable(is64); in getOrCreateFunctionTableSymbol()
115 Sym->setUndefined(); in getOrCreateFunctionTableSymbol()
119 Sym->setOmitFromLinkingSection(); in getOrCreateFunctionTableSymbol()
120 return Sym; in getOrCreateFunctionTableSymbol()
126 MCSymbolWasm *Sym = cast_or_null<MCSymbolWasm>(Ctx.lookupSymbol(Name)); in getOrCreateFuncrefCallTableSymbol() local
127 if (Sym) { in getOrCreateFuncrefCallTableSymbol()
128 if (!Sym->isFunctionTable()) in getOrCreateFuncrefCallTableSymbol()
131 Sym = cast<MCSymbolWasm>(Ctx.getOrCreateSymbol(Name)); in getOrCreateFuncrefCallTableSymbol()
135 Sym->setWeak(true); in getOrCreateFuncrefCallTableSymbol()
139 Sym->setType(wasm::WASM_SYMBOL_TYPE_TABLE); in getOrCreateFuncrefCallTableSymbol()
140 Sym->setTableType(TableType); in getOrCreateFuncrefCallTableSymbol()
144 Sym->setOmitFromLinkingSection(); in getOrCreateFuncrefCallTableSymbol()
145 return Sym; in getOrCreateFuncrefCallTableSymbol()