Home
last modified time | relevance | path

Searched refs:MachOLinkingContext (Results 1 – 25 of 32) sorted by relevance

12

/external/llvm-project/lld/lib/ReaderWriter/MachO/
DMachOLinkingContext.cpp40 bool MachOLinkingContext::parsePackedVersion(StringRef str, uint32_t &result) { in parsePackedVersion()
75 bool MachOLinkingContext::parsePackedVersion(StringRef str, uint64_t &result) { in parsePackedVersion()
104 MachOLinkingContext::ArchInfo MachOLinkingContext::_s_archInfos[] = {
115 MachOLinkingContext::Arch
116 MachOLinkingContext::archFromCpuType(uint32_t cputype, uint32_t cpusubtype) { in archFromCpuType()
124 MachOLinkingContext::Arch
125 MachOLinkingContext::archFromName(StringRef archName) { in archFromName()
133 StringRef MachOLinkingContext::nameFromArch(Arch arch) { in nameFromArch()
141 uint32_t MachOLinkingContext::cpuTypeFromArch(Arch arch) { in cpuTypeFromArch()
150 uint32_t MachOLinkingContext::cpuSubtypeFromArch(Arch arch) { in cpuSubtypeFromArch()
[all …]
DObjCPass.cpp33 MachOLinkingContext::ObjCConstraint objCConstraint, in ObjCImageInfoAtom()
40 case MachOLinkingContext::objc_unknown: in ObjCImageInfoAtom()
42 case MachOLinkingContext::objc_supports_gc: in ObjCImageInfoAtom()
43 case MachOLinkingContext::objc_gc_only: in ObjCImageInfoAtom()
45 case MachOLinkingContext::objc_retainReleaseForSimulator: in ObjCImageInfoAtom()
50 case MachOLinkingContext::objc_retainRelease: in ObjCImageInfoAtom()
98 ObjCPass(const MachOLinkingContext &context) in ObjCPass()
114 bool IsBig = MachOLinkingContext::isBigEndian(_ctx.arch()); in getImageInfo()
120 const MachOLinkingContext &_ctx;
126 void addObjCPass(PassManager &pm, const MachOLinkingContext &ctx) { in addObjCPass()
DMachOPasses.h18 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);
DFile.h33 MachOFile(std::unique_ptr<MemoryBuffer> mb, MachOLinkingContext *ctx) in MachOFile()
199 MachOLinkingContext::Arch arch() const { return _arch; } in arch()
200 void setArch(MachOLinkingContext::Arch arch) { _arch = arch; } in setArch()
202 MachOLinkingContext::OS OS() const { return _os; } in OS()
203 void setOS(MachOLinkingContext::OS os) { _os = os; } in setOS()
205 MachOLinkingContext::ObjCConstraint objcConstraint() const { in objcConstraint()
208 void setObjcConstraint(MachOLinkingContext::ObjCConstraint v) { in setObjcConstraint()
271 MachOLinkingContext *_ctx;
274 MachOLinkingContext::Arch _arch = MachOLinkingContext::arch_unknown;
275 MachOLinkingContext::OS _os = MachOLinkingContext::OS::unknown;
[all …]
DArchHandler.cpp32 MachOLinkingContext::Arch arch) { in create()
34 case MachOLinkingContext::arch_x86_64: in create()
36 case MachOLinkingContext::arch_x86: in create()
38 case MachOLinkingContext::arch_armv6: in create()
39 case MachOLinkingContext::arch_armv7: in create()
40 case MachOLinkingContext::arch_armv7s: in create()
42 case MachOLinkingContext::arch_arm64: in create()
DMachONormalizedFile.h225 MachOLinkingContext::Arch arch = MachOLinkingContext::arch_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) in MachOYamlIOTaggedDocumentHandler()
330 const MachOLinkingContext::Arch _arch;
DMachONormalizedFileYAML.cpp121 struct ScalarEnumerationTraits<lld::MachOLinkingContext::Arch> {
122 static void enumeration(IO &io, lld::MachOLinkingContext::Arch &value) { in enumeration()
123 io.enumCase(value, "unknown",lld::MachOLinkingContext::arch_unknown); in enumeration()
124 io.enumCase(value, "ppc", lld::MachOLinkingContext::arch_ppc); in enumeration()
125 io.enumCase(value, "x86", lld::MachOLinkingContext::arch_x86); in enumeration()
126 io.enumCase(value, "x86_64", lld::MachOLinkingContext::arch_x86_64); in enumeration()
127 io.enumCase(value, "armv6", lld::MachOLinkingContext::arch_armv6); in enumeration()
128 io.enumCase(value, "armv7", lld::MachOLinkingContext::arch_armv7); in enumeration()
129 io.enumCase(value, "armv7s", lld::MachOLinkingContext::arch_armv7s); in enumeration()
130 io.enumCase(value, "arm64", lld::MachOLinkingContext::arch_arm64); in enumeration()
[all …]
DMachONormalizedFileBinaryReader.cpp145 bool isThinObjectFile(StringRef path, MachOLinkingContext::Arch &arch) { in isThinObjectFile()
168 arch = MachOLinkingContext::archFromCpuType( in isThinObjectFile()
174 bool sliceFromFatFile(MemoryBufferRef mb, MachOLinkingContext::Arch arch, in sliceFromFatFile()
187 const uint32_t reqCpuType = MachOLinkingContext::cpuTypeFromArch(arch); in sliceFromFatFile()
188 const uint32_t reqCpuSubtype = MachOLinkingContext::cpuSubtypeFromArch(arch); in sliceFromFatFile()
205 const MachOLinkingContext::Arch arch) { in readBinary()
244 f->arch = MachOLinkingContext::archFromCpuType(smh->cputype, smh->cpusubtype); in readBinary()
248 "(" + MachOLinkingContext::nameFromArch(arch) in readBinary()
250 + MachOLinkingContext::nameFromArch(f->arch) in readBinary()
535 MachOObjectReader(MachOLinkingContext &ctx) : _ctx(ctx) {} in MachOObjectReader()
[all …]
DWriterMachO.cpp28 MachOWriter(const MachOLinkingContext &ctxt) : _ctx(ctxt) {} in MachOWriter()
60 const MachOLinkingContext &_ctx;
66 std::unique_ptr<Writer> createWriterMachO(const MachOLinkingContext &context) { in createWriterMachO()
DShimPass.cpp42 ShimPass(const MachOLinkingContext &context) in ShimPass()
114 const MachOLinkingContext &_ctx;
123 void addShimPass(PassManager &pm, const MachOLinkingContext &ctx) { in addShimPass()
DExecutableAtoms.h35 CEntryFile(const MachOLinkingContext &context) in CEntryFile()
52 StubHelperFile(const MachOLinkingContext &context) in StubHelperFile()
69 MachHeaderAliasFile(const MachOLinkingContext &context) in MachHeaderAliasFile()
DTLVPass.cpp67 TLVPass(const MachOLinkingContext &context) in TLVPass()
128 const MachOLinkingContext &_ctx;
134 void addTLVPass(PassManager &pm, const MachOLinkingContext &ctx) { in addTLVPass()
DGOTPass.cpp93 GOTPass(const MachOLinkingContext &context) in GOTPass()
171 const MachOLinkingContext &_ctx;
177 void addGOTPass(PassManager &pm, const MachOLinkingContext &ctx) { in addGOTPass()
DMachONormalizedFileToAtoms.cpp388 const bool is64 = MachOLinkingContext::is64Bit(normalizedFile.arch); in processSection()
389 const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch); in processSection()
600 const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch); in convertRelocs()
828 const bool is64 = MachOLinkingContext::is64Bit(normalizedFile.arch); in dataExtractorFromSection()
829 const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch); in dataExtractorFromSection()
1079 const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch); in processCIE()
1102 const bool is64 = MachOLinkingContext::is64Bit(normalizedFile.arch); in processCIE()
1185 const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch); in processFDE()
1186 const bool is64 = MachOLinkingContext::is64Bit(normalizedFile.arch); in processFDE()
1348 const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch); in addEHFrameReferences()
[all …]
DStubsPass.cpp210 StubsPass(const MachOLinkingContext &context) in StubsPass()
365 const MachOLinkingContext &_ctx;
372 void addStubsPass(PassManager &pm, const MachOLinkingContext &ctx) { in addStubsPass()
DCMakeLists.txt10 MachOLinkingContext.cpp
/external/llvm-project/lld/lib/Driver/
DDarwinLdDriver.cpp114 std::vector<std::unique_ptr<File>> loadFile(MachOLinkingContext &ctx, in loadFile()
158 static void addFile(StringRef path, MachOLinkingContext &ctx, in addFile()
169 MachOLinkingContext &ctx) { in parseExportsList()
199 MachOLinkingContext &ctx) { in parseOrderFile()
253 MachOLinkingContext &ctx, bool forceLoad) { in loadFileList()
318 bool parse(llvm::ArrayRef<const char *> args, MachOLinkingContext &ctx) { in parse()
366 MachOLinkingContext::Arch arch = MachOLinkingContext::arch_unknown; in parse()
368 arch = MachOLinkingContext::archFromName(archStr->getValue()); in parse()
369 if (arch == MachOLinkingContext::arch_unknown) { in parse()
375 if (arch == MachOLinkingContext::arch_unknown) { in parse()
[all …]
/external/llvm-project/lld/unittests/DriverTests/
DDarwinLdDriverTest.cpp25 bool parse(llvm::ArrayRef<const char *> args, MachOLinkingContext &ctx);
46 MachOLinkingContext _ctx;
134 EXPECT_EQ(MachOLinkingContext::arch_x86_64, _ctx.arch()); in TEST_F()
141 EXPECT_EQ(MachOLinkingContext::arch_x86, _ctx.arch()); in TEST_F()
148 EXPECT_EQ(MachOLinkingContext::arch_armv6, _ctx.arch()); in TEST_F()
155 EXPECT_EQ(MachOLinkingContext::arch_armv7, _ctx.arch()); in TEST_F()
162 EXPECT_EQ(MachOLinkingContext::arch_armv7s, _ctx.arch()); in TEST_F()
170 EXPECT_EQ(MachOLinkingContext::OS::macOSX, _ctx.os()); in TEST_F()
178 EXPECT_EQ(MachOLinkingContext::OS::macOSX, _ctx.os()); in TEST_F()
185 EXPECT_EQ(MachOLinkingContext::OS::iOS, _ctx.os()); in TEST_F()
[all …]
/external/llvm-project/lld/unittests/MachOTests/
DMachONormalizedFileYAMLTests.cpp51 EXPECT_EQ(f->arch, lld::MachOLinkingContext::arch_ppc); in TEST()
67 EXPECT_EQ(f->arch, lld::MachOLinkingContext::arch_x86_64); in TEST()
83 EXPECT_EQ(f->arch, lld::MachOLinkingContext::arch_x86); in TEST()
99 EXPECT_EQ(f->arch, lld::MachOLinkingContext::arch_armv6); in TEST()
115 EXPECT_EQ(f->arch, lld::MachOLinkingContext::arch_armv7); in TEST()
131 EXPECT_EQ(f->arch, lld::MachOLinkingContext::arch_armv7s); in TEST()
144 f.arch = lld::MachOLinkingContext::arch_x86_64; in TEST()
147 f.os = lld::MachOLinkingContext::OS::macOSX; in TEST()
152 EXPECT_EQ(f2->arch, lld::MachOLinkingContext::arch_x86_64); in TEST()
175 EXPECT_EQ(f->arch, lld::MachOLinkingContext::arch_x86_64); in TEST()
[all …]
DMachONormalizedFileToAtomsTests.cpp28 f.arch = lld::MachOLinkingContext::arch_x86_64; in TEST()
37 f.arch = lld::MachOLinkingContext::arch_x86_64; in TEST()
112 fReservedLength.arch = lld::MachOLinkingContext::arch_x86; in TEST()
113 fValidBigLength.arch = lld::MachOLinkingContext::arch_x86; in TEST()
DMachONormalizedFileBinaryReaderTests.cpp35 mb, lld::MachOLinkingContext::archFromName(archStr)); in fromBinary()
76 EXPECT_EQ(f->arch, lld::MachOLinkingContext::arch_x86_64); in TEST()
107 EXPECT_EQ(f->arch, lld::MachOLinkingContext::arch_x86); in TEST()
138 EXPECT_EQ(f->arch, lld::MachOLinkingContext::arch_ppc); in TEST()
169 EXPECT_EQ(f->arch, lld::MachOLinkingContext::arch_armv7); in TEST()
183 EXPECT_EQ(f->arch, lld::MachOLinkingContext::arch_x86_64); in TEST()
192 EXPECT_EQ(f2->arch, lld::MachOLinkingContext::arch_armv7); in TEST()
269 EXPECT_EQ(f->arch, lld::MachOLinkingContext::arch_x86_64); in TEST()
394 EXPECT_EQ(f->arch, lld::MachOLinkingContext::arch_x86); in TEST()
526 EXPECT_EQ(f->arch, lld::MachOLinkingContext::arch_armv7); in TEST()
[all …]
DMachONormalizedFileBinaryWriterTests.cpp39 mb, lld::MachOLinkingContext::archFromName(archStr)); in fromBinary()
114 f.arch = lld::MachOLinkingContext::arch_x86_64; in TEST()
117 f.os = lld::MachOLinkingContext::OS::macOSX; in TEST()
158 EXPECT_EQ(lld::MachOLinkingContext::arch_x86_64, f2->arch); in TEST()
232 f.arch = lld::MachOLinkingContext::arch_x86; in TEST()
235 f.os = lld::MachOLinkingContext::OS::macOSX; in TEST()
270 EXPECT_EQ(lld::MachOLinkingContext::arch_x86, f2->arch); in TEST()
343 f.arch = lld::MachOLinkingContext::arch_armv7; in TEST()
346 f.os = lld::MachOLinkingContext::OS::macOSX; in TEST()
389 EXPECT_EQ(lld::MachOLinkingContext::arch_armv7, f2->arch); in TEST()
[all …]
/external/llvm-project/lld/include/lld/Core/
DWriter.h20 class MachOLinkingContext; variable
42 std::unique_ptr<Writer> createWriterMachO(const MachOLinkingContext &);
DReader.h32 class MachOLinkingContext; variable
112 void addSupportMachOObjects(MachOLinkingContext &);
/external/llvm-project/lld/include/lld/ReaderWriter/
DMachOLinkingContext.h33 class MachOLinkingContext : public LinkingContext {
35 MachOLinkingContext();
36 ~MachOLinkingContext() override;
103 auto *ctx = const_cast<MachOLinkingContext *>(this); in make_file()
428 MachOLinkingContext::Arch arch;

12