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

References

tools/llvm-objcopy/MachO/MachOLayoutBuilder.cpp
  145         if (Sec.isVirtualSection()) {
  146           Sec.Offset = 0;
  149               offsetToAlignment(SegFileSize, Align(1ull << Sec.Align));
  150           Sec.Offset = SegOffset + SegFileSize + PaddingSize;
  151           Sec.Size = Sec.Content.size();
  151           Sec.Size = Sec.Content.size();
  152           SegFileSize += PaddingSize + Sec.Size;
  154         VMSize = std::max(VMSize, Sec.Addr + Sec.Size);
  154         VMSize = std::max(VMSize, Sec.Addr + Sec.Size);
  156         if (Sec.isVirtualSection()) {
  157           Sec.Offset = 0;
  158           VMSize += Sec.Size;
  160           uint32_t SectOffset = Sec.Addr - SegmentVmAddr;
  161           Sec.Offset = SegOffset + SectOffset;
  162           Sec.Size = Sec.Content.size();
  162           Sec.Size = Sec.Content.size();
  163           SegFileSize = std::max(SegFileSize, SectOffset + Sec.Size);