Lines Matching refs:YamlSym
263 for (XCOFFYAML::Symbol &YamlSym : Obj.Symbols) { in initStringTable()
264 if (nameShouldBeInStringTable(YamlSym.SymbolName)) { in initStringTable()
267 YamlSym.SymbolName = (*Obj.StrTbl.Strings)[StrTblIdx]; in initStringTable()
272 StrTblBuilder.add(YamlSym.SymbolName); in initStringTable()
276 for (const XCOFFYAML::Symbol &YamlSym : Obj.Symbols) { in initStringTable() local
277 if (nameShouldBeInStringTable(YamlSym.SymbolName)) in initStringTable()
278 StrTblBuilder.add(YamlSym.SymbolName); in initStringTable()
284 for (const XCOFFYAML::Symbol &YamlSym : Obj.Symbols) { in initStringTable() local
286 YamlSym.AuxEntries) { in initStringTable()
313 for (XCOFFYAML::Symbol &YamlSym : Obj.Symbols) { in initFileHeader()
314 uint32_t AuxCount = YamlSym.AuxEntries.size(); in initFileHeader()
315 if (YamlSym.NumberOfAuxEntries && *YamlSym.NumberOfAuxEntries < AuxCount) { in initFileHeader()
317 Twine(static_cast<uint32_t>(*YamlSym.NumberOfAuxEntries)) + in initFileHeader()
323 YamlSym.NumberOfAuxEntries = YamlSym.NumberOfAuxEntries.value_or(AuxCount); in initFileHeader()
325 InitFileHdr.NumberOfSymTableEntries += *YamlSym.NumberOfAuxEntries; in initFileHeader()
767 for (const XCOFFYAML::Symbol &YamlSym : Obj.Symbols) { in writeSymbols() local
769 W.write<uint64_t>(YamlSym.Value); in writeSymbols()
770 W.write<uint32_t>(StrTblBuilder.getOffset(YamlSym.SymbolName)); in writeSymbols()
772 if (nameShouldBeInStringTable(YamlSym.SymbolName)) { in writeSymbols()
776 W.write<uint32_t>(StrTblBuilder.getOffset(YamlSym.SymbolName)); in writeSymbols()
778 writeName(YamlSym.SymbolName, W); in writeSymbols()
780 W.write<uint32_t>(YamlSym.Value); in writeSymbols()
782 if (YamlSym.SectionName) { in writeSymbols()
783 if (!SectionIndexMap.count(*YamlSym.SectionName)) { in writeSymbols()
784 ErrHandler("the SectionName " + *YamlSym.SectionName + in writeSymbols()
788 if (YamlSym.SectionIndex && in writeSymbols()
789 SectionIndexMap[*YamlSym.SectionName] != *YamlSym.SectionIndex) { in writeSymbols()
790 ErrHandler("the SectionName " + *YamlSym.SectionName + in writeSymbols()
791 " and the SectionIndex (" + Twine(*YamlSym.SectionIndex) + in writeSymbols()
795 W.write<int16_t>(SectionIndexMap[*YamlSym.SectionName]); in writeSymbols()
797 W.write<int16_t>(YamlSym.SectionIndex ? *YamlSym.SectionIndex : 0); in writeSymbols()
799 W.write<uint16_t>(YamlSym.Type); in writeSymbols()
800 W.write<uint8_t>(YamlSym.StorageClass); in writeSymbols()
802 uint8_t NumOfAuxSym = YamlSym.NumberOfAuxEntries.value_or(0); in writeSymbols()
805 if (!NumOfAuxSym && !YamlSym.AuxEntries.size()) in writeSymbols()
809 if (!YamlSym.AuxEntries.size()) { in writeSymbols()
813 YamlSym.AuxEntries) { in writeSymbols()
818 if (NumOfAuxSym > YamlSym.AuxEntries.size()) in writeSymbols()
820 (NumOfAuxSym - YamlSym.AuxEntries.size())); in writeSymbols()