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

References

include/llvm/BinaryFormat/MachO.h
 1127   sys::swapByteOrder(d.dylib.name);
 1128   sys::swapByteOrder(d.dylib.timestamp);
 1129   sys::swapByteOrder(d.dylib.current_version);
 1130   sys::swapByteOrder(d.dylib.compatibility_version);
lib/Object/MachOObjectFile.cpp
  735   if (D.dylib.name < sizeof(MachO::dylib_command))
  739   if (D.dylib.name >= D.cmdsize)
  747   for (i = D.dylib.name; i < D.cmdsize; i++)
 2445       if (D.dylib.name >= D.cmdsize)
 2447       const char *P = (const char *)(Libraries[i]) + D.dylib.name;
 2449       if (D.dylib.name+Name.size() >= D.cmdsize)
lib/ObjectYAML/MachOYAML.cpp
  316   IO.mapRequired("dylib", LoadCommand.dylib);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryReader.cpp
  445       f->installName = lc + read32(&dl->dylib.name, isBig);
  446       f->currentVersion = read32(&dl->dylib.current_version, isBig);
  447       f->compatVersion = read32(&dl->dylib.compatibility_version, isBig);
  464       entry.path = lc + read32(&dl->dylib.name, isBig);
  466       entry.compatVersion = read32(&dl->dylib.compatibility_version, isBig);
  467       entry.currentVersion = read32(&dl->dylib.current_version, isBig);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
  839       dc->dylib.name                  = sizeof(dylib_command); // offset
  841       dc->dylib.timestamp             = 1;
  842       dc->dylib.current_version       = _file.currentVersion;
  843       dc->dylib.compatibility_version = _file.compatVersion;
  966       dc->dylib.name                  = sizeof(dylib_command); // offset
  968       dc->dylib.timestamp             = 2;
  969       dc->dylib.current_version       = dep.currentVersion;
  970       dc->dylib.compatibility_version = dep.compatVersion;
tools/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
 5618           if (m_data.GetU32(&offset, &load_cmd.dylib, 4) == nullptr)
 5620           version = load_cmd.dylib.current_version;
tools/llvm-objdump/MachODump.cpp
 1226       if (dl.dylib.name < dl.cmdsize) {
 1227         const char *p = (const char *)(Load.Ptr) + dl.dylib.name;
 1233                  << ((dl.dylib.compatibility_version >> 16) & 0xffff) << "."
 1234                  << ((dl.dylib.compatibility_version >> 8) & 0xff) << "."
 1235                  << (dl.dylib.compatibility_version & 0xff) << ",";
 1237                  << ((dl.dylib.current_version >> 16) & 0xffff) << "."
 1238                  << ((dl.dylib.current_version >> 8) & 0xff) << "."
 1239                  << (dl.dylib.current_version & 0xff);
 1251         outs() << "\tBad offset (" << dl.dylib.name << ") for name of ";
10002   if (dl.dylib.name < dl.cmdsize) {
10003     const char *P = (const char *)(Ptr) + dl.dylib.name;
10004     outs() << "         name " << P << " (offset " << dl.dylib.name << ")\n";
10006     outs() << "         name ?(bad offset " << dl.dylib.name << ")\n";
10008   outs() << "   time stamp " << dl.dylib.timestamp << " ";
10009   time_t t = dl.dylib.timestamp;
10012   if (dl.dylib.current_version == 0xffffffff)
10015     outs() << ((dl.dylib.current_version >> 16) & 0xffff) << "."
10016            << ((dl.dylib.current_version >> 8) & 0xff) << "."
10017            << (dl.dylib.current_version & 0xff) << "\n";
10019   if (dl.dylib.compatibility_version == 0xffffffff)
10022     outs() << ((dl.dylib.compatibility_version >> 16) & 0xffff) << "."
10023            << ((dl.dylib.compatibility_version >> 8) & 0xff) << "."
10024            << (dl.dylib.compatibility_version & 0xff) << "\n";
tools/llvm-readobj/MachODumper.cpp
  709       if (Dl.dylib.name < Dl.cmdsize) {
  710         auto *P = static_cast<const char*>(Command.Ptr) + Dl.dylib.name;