Lines Matching refs:Sym
277 Elf_Sym Sym; in initSymtabSectionHeader() local
278 zero(Sym); in initSymtabSectionHeader()
279 Syms.push_back(Sym); in initSymtabSectionHeader()
283 for (const auto &Sym : Doc.Symbols.Local) in initSymtabSectionHeader() local
284 DotStrtab.add(Sym.Name); in initSymtabSectionHeader()
285 for (const auto &Sym : Doc.Symbols.Global) in initSymtabSectionHeader() local
286 DotStrtab.add(Sym.Name); in initSymtabSectionHeader()
287 for (const auto &Sym : Doc.Symbols.Weak) in initSymtabSectionHeader() local
288 DotStrtab.add(Sym.Name); in initSymtabSectionHeader()
318 for (const auto &Sym : Symbols) { in addSymbols() local
321 if (!Sym.Name.empty()) in addSymbols()
322 Symbol.st_name = DotStrtab.getOffset(Sym.Name); in addSymbols()
323 Symbol.setBindingAndType(SymbolBinding, Sym.Type); in addSymbols()
324 if (!Sym.Section.empty()) { in addSymbols()
326 if (SN2I.lookup(Sym.Section, Index)) { in addSymbols()
327 errs() << "error: Unknown section referenced: '" << Sym.Section in addSymbols()
328 << "' by YAML symbol " << Sym.Name << ".\n"; in addSymbols()
333 Symbol.st_value = Sym.Value; in addSymbols()
334 Symbol.st_other = Sym.Other; in addSymbols()
335 Symbol.st_size = Sym.Size; in addSymbols()
484 for (const auto &Sym : Symbols) { in buildSymbolIndex() local
486 if (Sym.Name.empty()) in buildSymbolIndex()
488 if (SymN2I.addName(Sym.Name, StartIndex)) { in buildSymbolIndex()
489 errs() << "error: Repeated symbol name: '" << Sym.Name << "'.\n"; in buildSymbolIndex()