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

Declarations

tools/lld/include/lld/Core/Reader.h
   32 class MachOLinkingContext;
tools/lld/include/lld/Core/Writer.h
   20 class MachOLinkingContext;

References

tools/lld/include/lld/Core/Reader.h
  112   void addSupportMachOObjects(MachOLinkingContext &);
tools/lld/include/lld/Core/Writer.h
   42 std::unique_ptr<Writer> createWriterMachO(const MachOLinkingContext &);
tools/lld/include/lld/ReaderWriter/MachOLinkingContext.h
  103     auto *ctx = const_cast<MachOLinkingContext *>(this);
  430     MachOLinkingContext::Arch arch;
tools/lld/lib/Driver/DarwinLdDriver.cpp
  114 std::vector<std::unique_ptr<File>> loadFile(MachOLinkingContext &ctx,
  158 static void addFile(StringRef path, MachOLinkingContext &ctx,
  169                                         MachOLinkingContext &ctx) {
  199                                       MachOLinkingContext &ctx) {
  253                                 MachOLinkingContext &ctx, bool forceLoad) {
  317 bool parse(llvm::ArrayRef<const char *> args, MachOLinkingContext &ctx) {
  365   MachOLinkingContext::Arch arch = MachOLinkingContext::arch_unknown;
  365   MachOLinkingContext::Arch arch = MachOLinkingContext::arch_unknown;
  367     arch = MachOLinkingContext::archFromName(archStr->getValue());
  368     if (arch == MachOLinkingContext::arch_unknown) {
  374   if (arch == MachOLinkingContext::arch_unknown) {
  378       if (MachOLinkingContext::isThinObjectFile(inFile->getValue(), arch))
  381     if (arch == MachOLinkingContext::arch_unknown &&
  396   MachOLinkingContext::OS os = MachOLinkingContext::OS::unknown;
  396   MachOLinkingContext::OS os = MachOLinkingContext::OS::unknown;
  403       os = MachOLinkingContext::OS::macOSX;
  404       if (MachOLinkingContext::parsePackedVersion(minOS->getValue(),
  411       os = MachOLinkingContext::OS::iOS;
  412       if (MachOLinkingContext::parsePackedVersion(minOS->getValue(),
  419       os = MachOLinkingContext::OS::iOS_simulator;
  420       if (MachOLinkingContext::parsePackedVersion(minOS->getValue(),
  496     if (MachOLinkingContext::parsePackedVersion(vers->getValue(), parsedVers)) {
  509     if (MachOLinkingContext::parsePackedVersion(vers->getValue(), parsedVers)) {
  653     if (ctx.exportMode() == MachOLinkingContext::ExportMode::blackList) {
  658     ctx.setExportMode(MachOLinkingContext::ExportMode::whiteList);
  668     if (ctx.exportMode() == MachOLinkingContext::ExportMode::blackList) {
  673     ctx.setExportMode(MachOLinkingContext::ExportMode::whiteList);
  679     if (ctx.exportMode() == MachOLinkingContext::ExportMode::whiteList) {
  684     ctx.setExportMode(MachOLinkingContext::ExportMode::blackList);
  694     if (ctx.exportMode() == MachOLinkingContext::ExportMode::whiteList) {
  699     ctx.setExportMode(MachOLinkingContext::ExportMode::blackList);
  734       case MachOLinkingContext::OS::macOSX:
  741       case MachOLinkingContext::OS::iOS:
  748       case MachOLinkingContext::OS::iOS_simulator:
  754       case MachOLinkingContext::OS::unknown:
  921     if (MachOLinkingContext::parsePackedVersion(arg->getValue(),
  940     if (MachOLinkingContext::parsePackedVersion(arg->getValue(),
  966     ctx.setDebugInfoMode(MachOLinkingContext::DebugInfoMode::noDebugMap);
  986     MachOLinkingContext::UndefinedMode UndefMode;
  988       UndefMode = MachOLinkingContext::UndefinedMode::error;
  990       UndefMode = MachOLinkingContext::UndefinedMode::warning;
  992       UndefMode = MachOLinkingContext::UndefinedMode::suppress;
  994       UndefMode = MachOLinkingContext::UndefinedMode::dynamicLookup;
 1004       if (UndefMode != MachOLinkingContext::UndefinedMode::error)
 1005         UndefMode = MachOLinkingContext::UndefinedMode::suppress;
 1009       if (UndefMode == MachOLinkingContext::UndefinedMode::warning ||
 1010           UndefMode == MachOLinkingContext::UndefinedMode::suppress) {
 1031           if (ctx.os() == MachOLinkingContext::OS::macOSX)
 1133 static void createFiles(MachOLinkingContext &ctx, bool Implicit) {
 1156   MachOLinkingContext ctx;
tools/lld/lib/ReaderWriter/MachO/ArchHandler.cpp
   32                                                MachOLinkingContext::Arch arch) {
   34   case MachOLinkingContext::arch_x86_64:
   36   case MachOLinkingContext::arch_x86:
   38   case MachOLinkingContext::arch_armv6:
   39   case MachOLinkingContext::arch_armv7:
   40   case MachOLinkingContext::arch_armv7s:
   42   case MachOLinkingContext::arch_arm64:
tools/lld/lib/ReaderWriter/MachO/ArchHandler.h
   35   static std::unique_ptr<ArchHandler> create(MachOLinkingContext::Arch arch);
tools/lld/lib/ReaderWriter/MachO/CompactUnwindPass.cpp
  275   CompactUnwindPass(const MachOLinkingContext &context)
  278         _isBig(MachOLinkingContext::isBigEndian(_ctx.arch())) {
  568   const MachOLinkingContext &_ctx;
  574 void addCompactUnwindPass(PassManager &pm, const MachOLinkingContext &ctx) {
tools/lld/lib/ReaderWriter/MachO/ExecutableAtoms.h
   35   CEntryFile(const MachOLinkingContext &context)
   52   StubHelperFile(const MachOLinkingContext &context)
   69   MachHeaderAliasFile(const MachOLinkingContext &context)
tools/lld/lib/ReaderWriter/MachO/File.h
   31   MachOFile(std::unique_ptr<MemoryBuffer> mb, MachOLinkingContext *ctx)
  197   MachOLinkingContext::Arch arch() const { return _arch; }
  198   void setArch(MachOLinkingContext::Arch arch) { _arch = arch; }
  200   MachOLinkingContext::OS OS() const { return _os; }
  201   void setOS(MachOLinkingContext::OS os) { _os = os; }
  203   MachOLinkingContext::ObjCConstraint objcConstraint() const {
  206   void setObjcConstraint(MachOLinkingContext::ObjCConstraint v) {
  269   MachOLinkingContext          *_ctx;
  272   MachOLinkingContext::Arch      _arch = MachOLinkingContext::arch_unknown;
  272   MachOLinkingContext::Arch      _arch = MachOLinkingContext::arch_unknown;
  273   MachOLinkingContext::OS        _os = MachOLinkingContext::OS::unknown;
  273   MachOLinkingContext::OS        _os = MachOLinkingContext::OS::unknown;
  276   MachOLinkingContext::ObjCConstraint _objcConstraint =
  277       MachOLinkingContext::objc_unknown;
  285   MachODylibFile(std::unique_ptr<MemoryBuffer> mb, MachOLinkingContext *ctx)
  388   MachOLinkingContext                       *_ctx;
tools/lld/lib/ReaderWriter/MachO/FlatNamespaceFile.h
   26   FlatNamespaceFile(const MachOLinkingContext &context)
tools/lld/lib/ReaderWriter/MachO/GOTPass.cpp
   93   GOTPass(const MachOLinkingContext &context)
  171   const MachOLinkingContext &_ctx;
  177 void addGOTPass(PassManager &pm, const MachOLinkingContext &ctx) {
tools/lld/lib/ReaderWriter/MachO/LayoutPass.cpp
  480 void addLayoutPass(PassManager &pm, const MachOLinkingContext &ctx) {
tools/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
  104 MachOLinkingContext::ArchInfo MachOLinkingContext::_s_archInfos[] = {
  115 MachOLinkingContext::Arch
  124 MachOLinkingContext::Arch
  202         _os = MachOLinkingContext::OS::macOSX;
  209         _os = MachOLinkingContext::OS::iOS;
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFile.h
  225   MachOLinkingContext::Arch   arch = MachOLinkingContext::arch_unknown;
  225   MachOLinkingContext::Arch   arch = MachOLinkingContext::arch_unknown;
  248   MachOLinkingContext::OS     os = MachOLinkingContext::OS::unknown;
  248   MachOLinkingContext::OS     os = MachOLinkingContext::OS::unknown;
  274 bool isThinObjectFile(StringRef path, MachOLinkingContext::Arch &arch);
  279 bool sliceFromFatFile(MemoryBufferRef mb, MachOLinkingContext::Arch arch,
  285            const MachOLinkingContext::Arch arch);
  318 normalizedFromAtoms(const lld::File &atomFile, const MachOLinkingContext &ctxt);
  326   MachOYamlIOTaggedDocumentHandler(MachOLinkingContext::Arch arch)
  330   const MachOLinkingContext::Arch _arch;
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryReader.cpp
  145 bool isThinObjectFile(StringRef path, MachOLinkingContext::Arch &arch) {
  168   arch = MachOLinkingContext::archFromCpuType(
  174 bool sliceFromFatFile(MemoryBufferRef mb, MachOLinkingContext::Arch arch,
  187   const uint32_t reqCpuType = MachOLinkingContext::cpuTypeFromArch(arch);
  188   const uint32_t reqCpuSubtype = MachOLinkingContext::cpuSubtypeFromArch(arch);
  205            const MachOLinkingContext::Arch arch) {
  244   f->arch = MachOLinkingContext::archFromCpuType(smh->cputype, smh->cpusubtype);
  248                                   "(" + MachOLinkingContext::nameFromArch(arch)
  250                                   + MachOLinkingContext::nameFromArch(f->arch)
  535   MachOObjectReader(MachOLinkingContext &ctx) : _ctx(ctx) {}
  550   MachOLinkingContext &_ctx;
  555   MachODylibReader(MachOLinkingContext &ctx) : _ctx(ctx) {}
  576   MachOLinkingContext &_ctx;
  582 void Registry::addSupportMachOObjects(MachOLinkingContext &ctx) {
  583   MachOLinkingContext::Arch arch = ctx.arch();
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
  257       _is64(MachOLinkingContext::is64Bit(file.arch)),
  258       _swap(!MachOLinkingContext::isHostEndian(file.arch)),
  259       _bigEndianArch(MachOLinkingContext::isBigEndian(file.arch)),
  579   auto cpusubtype = MachOLinkingContext::cpuSubtypeFromArch(_file.arch);
  585       _file.os == MachOLinkingContext::OS::macOSX) {
  587     bool failed = MachOLinkingContext::parsePackedVersion("10.5", version);
  594   mh->cputype =  MachOLinkingContext::cpuTypeFromArch(_file.arch);
  746     case MachOLinkingContext::OS::unknown:
  752     case MachOLinkingContext::OS::macOSX:
  758     case MachOLinkingContext::OS::iOS:
  759     case MachOLinkingContext::OS::iOS_simulator:
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
   54               const MachOLinkingContext &ctxt, uint32_t attr,
   78                          const MachOLinkingContext &ctxt, uint32_t attrs,
  109   Util(const MachOLinkingContext &ctxt)
  191   const MachOLinkingContext &_ctx;
  463     case lld::MachOLinkingContext::OS::unknown:
  464     case lld::MachOLinkingContext::OS::macOSX:
  465     case lld::MachOLinkingContext::OS::iOS_simulator:
  473     case lld::MachOLinkingContext::OS::iOS:
  798   if (_ctx.debugInfoMode() == MachOLinkingContext::DebugInfoMode::noDebugMap)
  993     if ((_ctx.exportMode() == MachOLinkingContext::ExportMode::whiteList) &&
 1586                                            const MachOLinkingContext &context) {
 1616       context.os() != MachOLinkingContext::OS::unknown)
 1620            ((normFile.os != MachOLinkingContext::OS::unknown) ||
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp
  386   const bool is64 = MachOLinkingContext::is64Bit(normalizedFile.arch);
  387   const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch);
  598   const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch);
  826   const bool is64 = MachOLinkingContext::is64Bit(normalizedFile.arch);
  827   const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch);
 1077   const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch);
 1100     const bool is64 = MachOLinkingContext::is64Bit(normalizedFile.arch);
 1183   const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch);
 1184   const bool is64 = MachOLinkingContext::is64Bit(normalizedFile.arch);
 1346     const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch);
 1374   const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch);
 1383   if (flags & (MachOLinkingContext::objc_supports_gc |
 1384                MachOLinkingContext::objc_gc_only))
 1390   if (flags & MachOLinkingContext::objc_retainReleaseForSimulator)
 1391     file.setObjcConstraint(MachOLinkingContext::objc_retainReleaseForSimulator);
 1393     file.setObjcConstraint(MachOLinkingContext::objc_retainRelease);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp
  122   static void enumeration(IO &io, lld::MachOLinkingContext::Arch &value) {
  123     io.enumCase(value, "unknown",lld::MachOLinkingContext::arch_unknown);
  124     io.enumCase(value, "ppc",    lld::MachOLinkingContext::arch_ppc);
  125     io.enumCase(value, "x86",    lld::MachOLinkingContext::arch_x86);
  126     io.enumCase(value, "x86_64", lld::MachOLinkingContext::arch_x86_64);
  127     io.enumCase(value, "armv6",  lld::MachOLinkingContext::arch_armv6);
  128     io.enumCase(value, "armv7",  lld::MachOLinkingContext::arch_armv7);
  129     io.enumCase(value, "armv7s", lld::MachOLinkingContext::arch_armv7s);
  130     io.enumCase(value, "arm64",  lld::MachOLinkingContext::arch_arm64);
  136   static void enumeration(IO &io, lld::MachOLinkingContext::OS &value) {
  138                           lld::MachOLinkingContext::OS::unknown);
  140                           lld::MachOLinkingContext::OS::macOSX);
  142                           lld::MachOLinkingContext::OS::iOS);
  144                           lld::MachOLinkingContext::OS::iOS_simulator);
  375     case lld::MachOLinkingContext::arch_x86_64:
  397     case lld::MachOLinkingContext::arch_x86:
  409     case lld::MachOLinkingContext::arch_armv6:
  410     case lld::MachOLinkingContext::arch_armv7:
  411     case lld::MachOLinkingContext::arch_armv7s:
  429     case lld::MachOLinkingContext::arch_arm64:
  702     if (lld::MachOLinkingContext::parsePackedVersion(scalar, value))
  785                       + MachOLinkingContext::nameFromArch(_arch)
  787                       + MachOLinkingContext::nameFromArch(nf.arch)
tools/lld/lib/ReaderWriter/MachO/MachOPasses.h
   18 void addLayoutPass(PassManager &pm, const MachOLinkingContext &ctx);
   19 void addStubsPass(PassManager &pm, const MachOLinkingContext &ctx);
   20 void addGOTPass(PassManager &pm, const MachOLinkingContext &ctx);
   21 void addTLVPass(PassManager &pm, const MachOLinkingContext &ctx);
   22 void addCompactUnwindPass(PassManager &pm, const MachOLinkingContext &ctx);
   23 void addObjCPass(PassManager &pm, const MachOLinkingContext &ctx);
   24 void addShimPass(PassManager &pm, const MachOLinkingContext &ctx);
tools/lld/lib/ReaderWriter/MachO/ObjCPass.cpp
   33                     MachOLinkingContext::ObjCConstraint objCConstraint,
   40     case MachOLinkingContext::objc_unknown:
   42     case MachOLinkingContext::objc_supports_gc:
   43     case MachOLinkingContext::objc_gc_only:
   45     case MachOLinkingContext::objc_retainReleaseForSimulator:
   50     case MachOLinkingContext::objc_retainRelease:
   98   ObjCPass(const MachOLinkingContext &context)
  114     bool IsBig = MachOLinkingContext::isBigEndian(_ctx.arch());
  120   const MachOLinkingContext   &_ctx;
  126 void addObjCPass(PassManager &pm, const MachOLinkingContext &ctx) {
tools/lld/lib/ReaderWriter/MachO/ShimPass.cpp
   42   ShimPass(const MachOLinkingContext &context)
  114   const MachOLinkingContext &_ctx;
  123 void addShimPass(PassManager &pm, const MachOLinkingContext &ctx) {
tools/lld/lib/ReaderWriter/MachO/StubsPass.cpp
  210   StubsPass(const MachOLinkingContext &context)
  365   const MachOLinkingContext &_ctx;
  372 void addStubsPass(PassManager &pm, const MachOLinkingContext &ctx) {
tools/lld/lib/ReaderWriter/MachO/TLVPass.cpp
   67   TLVPass(const MachOLinkingContext &context)
  128   const MachOLinkingContext &_ctx;
  134 void addTLVPass(PassManager &pm, const MachOLinkingContext &ctx) {
tools/lld/lib/ReaderWriter/MachO/WriterMachO.cpp
   28   MachOWriter(const MachOLinkingContext &ctxt) : _ctx(ctxt) {}
   60   const MachOLinkingContext &_ctx;
   66 std::unique_ptr<Writer> createWriterMachO(const MachOLinkingContext &context) {
tools/lld/unittests/DriverTests/DarwinLdDriverTest.cpp
   25 bool parse(llvm::ArrayRef<const char *> args, MachOLinkingContext &ctx);
   46   MachOLinkingContext _ctx;
tools/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp
   35           mb, lld::MachOLinkingContext::archFromName(archStr));
tools/lld/unittests/MachOTests/MachONormalizedFileBinaryWriterTests.cpp
   39           mb, lld::MachOLinkingContext::archFromName(archStr));
  114     f.arch = lld::MachOLinkingContext::arch_x86_64;
  117     f.os = lld::MachOLinkingContext::OS::macOSX;
  232     f.arch = lld::MachOLinkingContext::arch_x86;
  235     f.os = lld::MachOLinkingContext::OS::macOSX;
  343     f.arch = lld::MachOLinkingContext::arch_armv7;
  346     f.os = lld::MachOLinkingContext::OS::macOSX;
  473     f.arch = lld::MachOLinkingContext::arch_ppc;
  476     f.os = lld::MachOLinkingContext::OS::macOSX;
tools/lld/unittests/MachOTests/MachONormalizedFileToAtomsTests.cpp
   28   f.arch = lld::MachOLinkingContext::arch_x86_64;
   37   f.arch = lld::MachOLinkingContext::arch_x86_64;
tools/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp
  144     f.arch = lld::MachOLinkingContext::arch_x86_64;
  147     f.os = lld::MachOLinkingContext::OS::macOSX;
usr/include/c++/7.4.0/bits/move.h
   72     constexpr _Tp&&
   83     constexpr _Tp&&
usr/include/c++/7.4.0/bits/unique_ptr.h
  824     make_unique(_Args&&... __args)