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

References

lib/MC/MCLinkerOptimizationHint.cpp
   38   raw_ostream &OutStream = ObjWriter.W.OS;
lib/MC/MachObjectWriter.cpp
  145   uint64_t Start = W.OS.tell();
  148   W.write<uint32_t>(is64Bit() ? MachO::MH_MAGIC_64 : MachO::MH_MAGIC);
  150   W.write<uint32_t>(TargetObjectWriter->getCPUType());
  151   W.write<uint32_t>(TargetObjectWriter->getCPUSubtype());
  153   W.write<uint32_t>(Type);
  154   W.write<uint32_t>(NumLoadCommands);
  155   W.write<uint32_t>(LoadCommandsSize);
  156   W.write<uint32_t>(Flags);
  158     W.write<uint32_t>(0); // reserved
  160   assert(W.OS.tell() - Start == (is64Bit() ? sizeof(MachO::mach_header_64)
  166   W.OS << Str;
  167   W.OS.write_zeros(Size - Str.size());
  181   uint64_t Start = W.OS.tell();
  187   W.write<uint32_t>(is64Bit() ? MachO::LC_SEGMENT_64 : MachO::LC_SEGMENT);
  188   W.write<uint32_t>(SegmentLoadCommandSize +
  194     W.write<uint64_t>(VMAddr);                 // vmaddr
  195     W.write<uint64_t>(VMSize); // vmsize
  196     W.write<uint64_t>(SectionDataStartOffset); // file offset
  197     W.write<uint64_t>(SectionDataSize); // file size
  199     W.write<uint32_t>(VMAddr);                 // vmaddr
  200     W.write<uint32_t>(VMSize); // vmsize
  201     W.write<uint32_t>(SectionDataStartOffset); // file offset
  202     W.write<uint32_t>(SectionDataSize); // file size
  205   W.write<uint32_t>(MaxProt);
  207   W.write<uint32_t>(InitProt);
  208   W.write<uint32_t>(NumSections);
  209   W.write<uint32_t>(0); // flags
  211   assert(W.OS.tell() - Start == SegmentLoadCommandSize);
  231   uint64_t Start = W.OS.tell();
  237     W.write<uint64_t>(VMAddr);      // address
  238     W.write<uint64_t>(SectionSize); // size
  240     W.write<uint32_t>(VMAddr);      // address
  241     W.write<uint32_t>(SectionSize); // size
  243   W.write<uint32_t>(FileOffset);
  246   W.write<uint32_t>(Log2_32(Section.getAlignment()));
  247   W.write<uint32_t>(NumRelocations ? RelocationsStart : 0);
  248   W.write<uint32_t>(NumRelocations);
  249   W.write<uint32_t>(Flags);
  250   W.write<uint32_t>(IndirectSymBase.lookup(&Sec)); // reserved1
  251   W.write<uint32_t>(Section.getStubSize()); // reserved2
  253     W.write<uint32_t>(0); // reserved3
  255   assert(W.OS.tell() - Start ==
  265   uint64_t Start = W.OS.tell();
  268   W.write<uint32_t>(MachO::LC_SYMTAB);
  269   W.write<uint32_t>(sizeof(MachO::symtab_command));
  270   W.write<uint32_t>(SymbolOffset);
  271   W.write<uint32_t>(NumSymbols);
  272   W.write<uint32_t>(StringTableOffset);
  273   W.write<uint32_t>(StringTableSize);
  275   assert(W.OS.tell() - Start == sizeof(MachO::symtab_command));
  288   uint64_t Start = W.OS.tell();
  291   W.write<uint32_t>(MachO::LC_DYSYMTAB);
  292   W.write<uint32_t>(sizeof(MachO::dysymtab_command));
  293   W.write<uint32_t>(FirstLocalSymbol);
  294   W.write<uint32_t>(NumLocalSymbols);
  295   W.write<uint32_t>(FirstExternalSymbol);
  296   W.write<uint32_t>(NumExternalSymbols);
  297   W.write<uint32_t>(FirstUndefinedSymbol);
  298   W.write<uint32_t>(NumUndefinedSymbols);
  299   W.write<uint32_t>(0); // tocoff
  300   W.write<uint32_t>(0); // ntoc
  301   W.write<uint32_t>(0); // modtaboff
  302   W.write<uint32_t>(0); // nmodtab
  303   W.write<uint32_t>(0); // extrefsymoff
  304   W.write<uint32_t>(0); // nextrefsyms
  305   W.write<uint32_t>(IndirectSymbolOffset);
  306   W.write<uint32_t>(NumIndirectSymbols);
  307   W.write<uint32_t>(0); // extreloff
  308   W.write<uint32_t>(0); // nextrel
  309   W.write<uint32_t>(0); // locreloff
  310   W.write<uint32_t>(0); // nlocrel
  312   assert(W.OS.tell() - Start == sizeof(MachO::dysymtab_command));
  392   W.write<uint32_t>(MSD.StringIndex);
  393   W.OS << char(Type);
  394   W.OS << char(SectionIndex);
  400   W.write<uint16_t>(cast<MCSymbolMachO>(Symbol)->getEncodedFlags(EncodeAsAltEntry));
  402     W.write<uint64_t>(Address);
  404     W.write<uint32_t>(Address);
  410   uint64_t Start = W.OS.tell();
  413   W.write<uint32_t>(Type);
  414   W.write<uint32_t>(sizeof(MachO::linkedit_data_command));
  415   W.write<uint32_t>(DataOffset);
  416   W.write<uint32_t>(DataSize);
  418   assert(W.OS.tell() - Start == sizeof(MachO::linkedit_data_command));
  434   uint64_t Start = W.OS.tell();
  437   W.write<uint32_t>(MachO::LC_LINKER_OPTION);
  438   W.write<uint32_t>(Size);
  439   W.write<uint32_t>(Options.size());
  443     W.OS << Option << '\0';
  448   W.OS.write_zeros(
  451   assert(W.OS.tell() - Start == Size);
  634       if (W.Endian == support::little)
  756   uint64_t StartOffset = W.OS.tell();
  882       W.write<uint32_t>(MachO::LC_BUILD_VERSION);
  883       W.write<uint32_t>(sizeof(MachO::build_version_command));
  884       W.write<uint32_t>(VersionInfo.TypeOrPlatform.Platform);
  885       W.write<uint32_t>(EncodedVersion);
  886       W.write<uint32_t>(SDKVersion);
  887       W.write<uint32_t>(0);         // Empty tools list.
  891       W.write<uint32_t>(LCType);
  892       W.write<uint32_t>(sizeof(MachO::version_min_command));
  893       W.write<uint32_t>(EncodedVersion);
  894       W.write<uint32_t>(SDKVersion);
  954     Asm.writeSectionData(W.OS, &Sec, Layout);
  957     W.OS.write_zeros(Pad);
  961   W.OS.write_zeros(SectionDataPadding);
  969       W.write<uint32_t>(Rel.MRE.r_word0);
  970       W.write<uint32_t>(Rel.MRE.r_word1);
  991     W.write<uint32_t>(Start);
  992     W.write<uint16_t>(End - Start);
  993     W.write<uint16_t>(Data->Kind);
  999     unsigned Start = W.OS.tell();
 1003     W.OS.write_zeros(
 1005     assert(W.OS.tell() - Start == LOHSize);
 1024           W.write<uint32_t>(Flags);
 1029       W.write<uint32_t>(it->Symbol->getIndex());
 1041     StringTable.write(W.OS);
 1044   return W.OS.tell() - StartOffset;
tools/dsymutil/MachOUtils.cpp
  272   Writer.W.OS.write(reinterpret_cast<char *>(&Segment), sizeof(Segment));
  278     Writer.W.OS.write(reinterpret_cast<char *>(&Sect), sizeof(Sect));
  465     Writer.W.write<uint32_t>(UUIDCmd.cmd);
  466     Writer.W.write<uint32_t>(sizeof(UUIDCmd));
  471     Writer.W.write<uint32_t>(Cmd.cmd);
  472     Writer.W.write<uint32_t>(sizeof(Cmd));
  473     Writer.W.write<uint32_t>(Cmd.platform);
  474     Writer.W.write<uint32_t>(Cmd.minos);
  475     Writer.W.write<uint32_t>(Cmd.sdk);
  476     Writer.W.write<uint32_t>(Cmd.ntools);