Lines Matching refs:Sym
260 Elf_Sym Sym; in initSymtabSectionHeader() local
261 zero(Sym); in initSymtabSectionHeader()
262 Syms.push_back(Sym); in initSymtabSectionHeader()
266 for (const auto &Sym : Doc.Symbols.Local) in initSymtabSectionHeader() local
267 DotStrtab.add(Sym.Name); in initSymtabSectionHeader()
268 for (const auto &Sym : Doc.Symbols.Global) in initSymtabSectionHeader() local
269 DotStrtab.add(Sym.Name); in initSymtabSectionHeader()
270 for (const auto &Sym : Doc.Symbols.Weak) in initSymtabSectionHeader() local
271 DotStrtab.add(Sym.Name); in initSymtabSectionHeader()
299 for (const auto &Sym : Symbols) { in addSymbols() local
302 if (!Sym.Name.empty()) in addSymbols()
303 Symbol.st_name = DotStrtab.getOffset(Sym.Name); in addSymbols()
304 Symbol.setBindingAndType(SymbolBinding, Sym.Type); in addSymbols()
305 if (!Sym.Section.empty()) { in addSymbols()
307 if (SN2I.lookup(Sym.Section, Index)) { in addSymbols()
308 errs() << "error: Unknown section referenced: '" << Sym.Section in addSymbols()
309 << "' by YAML symbol " << Sym.Name << ".\n"; in addSymbols()
314 Symbol.st_value = Sym.Value; in addSymbols()
315 Symbol.st_other = Sym.Other; in addSymbols()
316 Symbol.st_size = Sym.Size; in addSymbols()
440 for (const auto &Sym : Symbols) { in buildSymbolIndex() local
442 if (Sym.Name.empty()) in buildSymbolIndex()
444 if (SymN2I.addName(Sym.Name, StartIndex)) { in buildSymbolIndex()
445 errs() << "error: Repeated symbol name: '" << Sym.Name << "'.\n"; in buildSymbolIndex()