reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryReader.cpp
  321           f->sections.push_back(section);
  363           f->sections.push_back(section);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
  269                                + file.sections.size() * sectsSize
  288     for (const Section &sect : file.sections) {
  394   size += _file.sections.size() * sectionSize;
  497   for (const Section &s1 : _file.sections) {
  498     for (const Section &s2 : _file.sections) {
  517   for (const Section &s : _file.sections) {
  626                           + _file.sections.size() * sizeof(typename T::section);
  634   seg->nsects = _file.sections.size();
  636     seg->vmsize = _file.sections.back().address
  637                 + _file.sections.back().content.size();
  638     seg->filesize = _sectInfo[&_file.sections.back()].fileOffset +
  639                     _file.sections.back().content.size() -
  640                     _sectInfo[&_file.sections.front()].fileOffset;
  648   for (const Section &sin : _file.sections) {
 1021   for (const Section &s : _file.sections) {
 1037   for (Section sect : _file.sections) {
 1114     for (const Section &section : _file.sections) {
 1495   for (const Section &sect : _file.sections) {
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
  640   file.sections.push_back(std::move(temp));
  641   Section* normSect = &file.sections.back();
  650   si->normalizedSectionIndex = file.sections.size()-1;
  672     Section *normSect = &file.sections[si->normalizedSectionIndex];
  701   file.sections.reserve(_sectionInfos.size());
  711   file.sections.reserve(_sectionInfos.size());
  718       Section *normSect = &file.sections[si->normalizedSectionIndex];
 1172     Section &normSect = file.sections[si->normalizedSectionIndex];
 1316     Section &normSect = file.sections[si->normalizedSectionIndex];
 1514               file.sections[sectInfo->normalizedSectionIndex].content;
 1526           file.sections[sectInfo->normalizedSectionIndex].content = newContent;
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp
  282   for (auto &sect : normalizedFile.sections) {
  494   for (const Section &s : normalizedFile.sections) {
  530     if (sectIndex > normalizedFile.sections.size())
  540       sect = &normalizedFile.sections[sectIndex-1];
  573       if (sym->sect > normalizedFile.sections.size())
  576       const Section &symSection = normalizedFile.sections[sym->sect-1];
  946   for (auto &s : normalizedFile.sections) {
 1324   for (auto &section : normalizedFile.sections)
 1438   for (auto &sect : normalizedFile.sections) {
 1476   for (auto &sect : normalizedFile.sections) {
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp
  731     io.mapOptional("sections",         file.sections);
tools/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp
  272   EXPECT_EQ(f->sections.size(), 2UL);
  273   const Section& text = f->sections[0];
  299   const Section& cstring = f->sections[1];
  397   EXPECT_EQ(f->sections.size(), 2UL);
  398   const Section& text = f->sections[0];
  434   const Section& cstring = f->sections[1];
  529   EXPECT_EQ(f->sections.size(), 2UL);
  530   const Section& text = f->sections[0];
  575   const Section& cstring = f->sections[1];
  673   EXPECT_EQ(f->sections.size(), 2UL);
  674   const Section& text = f->sections[0];
  718   const Section& cstring = f->sections[1];
tools/lld/unittests/MachOTests/MachONormalizedFileBinaryWriterTests.cpp
  118     f.sections.resize(1);
  119     Section& text = f.sections.front();
  174   EXPECT_EQ(1UL, f2->sections.size());
  175   const Section& text = f2->sections[0];
  236     f.sections.resize(1);
  237     Section& text = f.sections.front();
  286   EXPECT_EQ(1UL, f2->sections.size());
  287   const Section& text = f2->sections[0];
  347     f.sections.resize(1);
  348     Section& text = f.sections.front();
  412   EXPECT_EQ(1UL, f2->sections.size());
  413   const Section& text = f2->sections[0];
  477     f.sections.resize(1);
  478     Section& text = f.sections.front();
  569   EXPECT_EQ(1UL, f2->sections.size());
  570   const Section& text = f2->sections[0];
tools/lld/unittests/MachOTests/MachONormalizedFileToAtomsTests.cpp
   42   f.sections.push_back(textSection);
tools/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp
   54   EXPECT_TRUE(f->sections.empty());
   70   EXPECT_TRUE(f->sections.empty());
   86   EXPECT_TRUE(f->sections.empty());
  102   EXPECT_TRUE(f->sections.empty());
  118   EXPECT_TRUE(f->sections.empty());
  134   EXPECT_TRUE(f->sections.empty());
  155     EXPECT_TRUE(f2->sections.empty());
  177   EXPECT_TRUE(f->sections.empty());
  209   EXPECT_EQ(f->sections.size(), 1UL);
  210   const Section& sect = f->sections[0];
  279   EXPECT_EQ(f->sections.size(), 2UL);
  281   const Section& sect1 = f->sections[0];
  313   const Section& sect2 = f->sections[1];
  409   EXPECT_EQ(f->sections.size(), 2UL);
  411   const Section& sect1 = f->sections[0];
  450   const Section& sect2 = f->sections[1];
  537   EXPECT_EQ(f->sections.size(), 2UL);
  539   const Section& sect1 = f->sections[0];
  578   const Section& sect2 = f->sections[1];
  677   EXPECT_EQ(f->sections.size(), 2UL);
  679   const Section& sect1 = f->sections[0];
  734   const Section& sect2 = f->sections[1];