| /src/contrib/llvm-project/llvm/lib/BinaryFormat/ |
| H A D | MsgPackReader.cpp | 29 Expected<bool> Reader::read(Object &Obj) { in read() argument 37 Obj.Kind = Type::Nil; in read() 40 Obj.Kind = Type::Boolean; in read() 41 Obj.Bool = true; in read() 44 Obj.Kind = Type::Boolean; in read() 45 Obj.Bool = false; in read() 48 Obj.Kind = Type::Int; in read() 49 return readInt<int8_t>(Obj); in read() 51 Obj.Kind = Type::Int; in read() 52 return readInt<int16_t>(Obj); in read() [all …]
|
| /src/contrib/llvm-project/llvm/lib/ObjCopy/COFF/ |
| H A D | COFFWriter.cpp | 28 for (Section &Sec : Obj.getMutableSections()) { in finalizeRelocTargets() 30 const Symbol *Sym = Obj.findSymbol(R.Target); in finalizeRelocTargets() 42 for (Symbol &Sym : Obj.getMutableSymbols()) { in finalizeSymbolContents() 48 const Section *Sec = Obj.findSection(Sym.TargetSectionId); in finalizeSymbolContents() 66 Sec = Obj.findSection(Sym.AssociativeComdatTargetSectionId); in finalizeSymbolContents() 84 const Symbol *Target = Obj.findSymbol(*Sym.WeakTargetSymbolId); in finalizeSymbolContents() 96 for (auto &S : Obj.getMutableSections()) { in layoutSections() 122 for (const auto &S : Obj.getSections()) in finalizeStringTable() 126 for (const auto &S : Obj.getSymbols()) in finalizeStringTable() 132 for (auto &S : Obj.getMutableSections()) { in finalizeStringTable() [all …]
|
| H A D | COFFReader.cpp | 26 Error COFFReader::readExecutableHeaders(Object &Obj) const { in readExecutableHeaders() 28 Obj.Is64 = COFFObj.is64(); in readExecutableHeaders() 32 Obj.IsPE = true; in readExecutableHeaders() 33 Obj.DosHeader = *DH; in readExecutableHeaders() 35 Obj.DosStub = ArrayRef<uint8_t>(reinterpret_cast<const uint8_t *>(&DH[1]), in readExecutableHeaders() 39 Obj.PeHeader = *COFFObj.getPE32PlusHeader(); in readExecutableHeaders() 42 copyPeHeader(Obj.PeHeader, *PE32); in readExecutableHeaders() 44 Obj.BaseOfData = PE32->BaseOfData; in readExecutableHeaders() 47 for (size_t I = 0; I < Obj.PeHeader.NumberOfRvaAndSize; I++) { in readExecutableHeaders() 51 Obj.DataDirectories.emplace_back(*Dir); in readExecutableHeaders() [all …]
|
| H A D | COFFObjcopy.cpp | 35 static uint64_t getNextRVA(const Object &Obj) { in getNextRVA() argument 36 if (Obj.getSections().empty()) in getNextRVA() 38 const Section &Last = Obj.getSections().back(); in getNextRVA() 40 Obj.IsPE ? Obj.PeHeader.SectionAlignment : 1); in getNextRVA() 61 static void addSection(Object &Obj, StringRef Name, ArrayRef<uint8_t> Contents, in addSection() argument 70 Sec.Header.VirtualAddress = NeedVA ? getNextRVA(Obj) : 0u; in addSection() 73 Obj.IsPE ? Obj.PeHeader.FileAlignment : 1) in addSection() 82 Obj.addSections(Sec); in addSection() 85 static Error addGnuDebugLink(Object &Obj, StringRef DebugLinkFile) { in addGnuDebugLink() argument 91 addSection(Obj, ".gnu_debuglink", *Contents, in addGnuDebugLink() [all …]
|
| /src/contrib/llvm-project/llvm/tools/llvm-pdbutil/ |
| H A D | PdbYaml.cpp | 104 void MappingTraits<PdbObject>::mapping(IO &IO, PdbObject &Obj) { in mapping() argument 105 IO.mapOptional("MSF", Obj.Headers); in mapping() 106 IO.mapOptional("StreamSizes", Obj.StreamSizes); in mapping() 107 IO.mapOptional("StreamMap", Obj.StreamMap); in mapping() 108 IO.mapOptional("StringTable", Obj.StringTable); in mapping() 109 IO.mapOptional("PdbStream", Obj.PdbStream); in mapping() 110 IO.mapOptional("DbiStream", Obj.DbiStream); in mapping() 111 IO.mapOptional("TpiStream", Obj.TpiStream); in mapping() 112 IO.mapOptional("IpiStream", Obj.IpiStream); in mapping() 113 IO.mapOptional("PublicsStream", Obj.PublicsStream); in mapping() [all …]
|
| H A D | YAMLOutputStyle.cpp | 41 : File(File), Out(outs()), Obj(File.getAllocator()) { in YAMLOutputStyle() 86 Obj.Headers.emplace(); in dumpFileHeaders() 87 Obj.Headers->SuperBlock.NumBlocks = File.getBlockCount(); in dumpFileHeaders() 88 Obj.Headers->SuperBlock.BlockMapAddr = File.getBlockMapIndex(); in dumpFileHeaders() 89 Obj.Headers->SuperBlock.BlockSize = File.getBlockSize(); in dumpFileHeaders() 91 Obj.Headers->DirectoryBlocks.assign(Blocks.begin(), Blocks.end()); in dumpFileHeaders() 92 Obj.Headers->NumDirectoryBlocks = File.getNumDirectoryBlocks(); in dumpFileHeaders() 93 Obj.Headers->SuperBlock.NumDirectoryBytes = File.getNumDirectoryBytes(); in dumpFileHeaders() 94 Obj.Headers->NumStreams = in dumpFileHeaders() 96 Obj.Headers->SuperBlock.FreeBlockMapBlock = File.getFreeBlockMapBlock(); in dumpFileHeaders() [all …]
|
| /src/contrib/llvm-project/llvm/lib/ObjCopy/ELF/ |
| H A D | ELFObjcopy.cpp | 62 static bool onlyKeepDWOPred(const Object &Obj, const SectionBase &Sec) { in onlyKeepDWOPred() argument 64 if (&Sec == Obj.SectionNames) in onlyKeepDWOPred() 158 Object &Obj, raw_ostream &Out, in createELFWriter() argument 163 return std::make_unique<ELFWriter<ELF32LE>>(Obj, Out, !Config.StripSections, in createELFWriter() 166 return std::make_unique<ELFWriter<ELF64LE>>(Obj, Out, !Config.StripSections, in createELFWriter() 169 return std::make_unique<ELFWriter<ELF32BE>>(Obj, Out, !Config.StripSections, in createELFWriter() 172 return std::make_unique<ELFWriter<ELF64BE>>(Obj, Out, !Config.StripSections, in createELFWriter() 179 Object &Obj, raw_ostream &Out, in createWriter() argument 183 return std::make_unique<BinaryWriter>(Obj, Out, Config); in createWriter() 185 return std::make_unique<IHexWriter>(Obj, Out, Config.OutputFilename); in createWriter() [all …]
|
| /src/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | SafeStackLayout.cpp | 51 void StackLayout::layoutObject(StackObject &Obj) { in layoutObject() argument 56 unsigned Start = AdjustStackOffset(LastRegionEnd, Obj.Size, Obj.Alignment); in layoutObject() 57 unsigned End = Start + Obj.Size; in layoutObject() 58 Regions.emplace_back(Start, End, Obj.Range); in layoutObject() 59 ObjectOffsets[Obj.Handle] = End; in layoutObject() 63 LLVM_DEBUG(dbgs() << "Layout: size " << Obj.Size << ", align " in layoutObject() 64 << Obj.Alignment.value() << ", range " << Obj.Range in layoutObject() 66 assert(Obj.Alignment <= MaxAlignment); in layoutObject() 67 unsigned Start = AdjustStackOffset(0, Obj.Size, Obj.Alignment); in layoutObject() 68 unsigned End = Start + Obj.Size; in layoutObject() [all …]
|
| /src/contrib/llvm-project/llvm/lib/ObjCopy/XCOFF/ |
| H A D | XCOFFWriter.cpp | 22 FileSize += Obj.FileHeader.AuxHeaderSize; in finalizeHeaders() 24 FileSize += sizeof(XCOFFSectionHeader32) * Obj.Sections.size(); in finalizeHeaders() 28 for (const Section &Sec : Obj.Sections) { in finalizeSections() 38 assert(Obj.FileHeader.SymbolTableOffset >= FileSize); in finalizeSymbolStringTable() 39 FileSize = Obj.FileHeader.SymbolTableOffset; in finalizeSymbolStringTable() 42 Obj.FileHeader.NumberOfSymTableEntries * XCOFF::SymbolTableEntrySize; in finalizeSymbolStringTable() 44 FileSize += Obj.StringTable.size(); in finalizeSymbolStringTable() 57 memcpy(Ptr, &Obj.FileHeader, sizeof(XCOFFFileHeader32)); in writeHeaders() 61 if (Obj.FileHeader.AuxHeaderSize) { in writeHeaders() 62 memcpy(Ptr, &Obj.OptionalFileHeader, Obj.FileHeader.AuxHeaderSize); in writeHeaders() [all …]
|
| H A D | XCOFFReader.cpp | 17 Error XCOFFReader::readSections(Object &Obj) const { in readSections() 45 Obj.Sections.push_back(std::move(ReadSec)); in readSections() 50 Error XCOFFReader::readSymbols(Object &Obj) const { in readSymbols() 70 Obj.Symbols.push_back(std::move(ReadSym)); in readSymbols() 76 auto Obj = std::make_unique<Object>(); in create() local 82 Obj->FileHeader = *XCOFFObj.fileHeader32(); in create() 85 Obj->OptionalFileHeader = *XCOFFObj.auxiliaryHeader32(); in create() 87 Obj->Sections.reserve(XCOFFObj.getNumberOfSections()); in create() 88 if (Error E = readSections(*Obj)) in create() 91 Obj->Symbols.reserve(XCOFFObj.getRawNumberOfSymbolTableEntries32()); in create() [all …]
|
| /src/contrib/llvm-project/llvm/tools/llvm-readobj/ |
| H A D | MachODumper.cpp | 30 MachODumper(const MachOObjectFile *Obj, ScopedPrinter &Writer) in MachODumper() argument 31 : ObjDumper(Writer, Obj->getFileName()), Obj(Obj) {} in MachODumper() 71 void printRelocation(const MachOObjectFile *Obj, const RelocationRef &Reloc); 73 void printSectionHeaders(const MachOObjectFile *Obj); 75 const MachOObjectFile *Obj; member in __anonfeb1fe220111::MachODumper 83 std::unique_ptr<ObjDumper> createMachODumper(const object::MachOObjectFile &Obj, in createMachODumper() argument 85 return std::make_unique<MachODumper>(&Obj, Writer); in createMachODumper() 341 static void getSection(const MachOObjectFile *Obj, in getSection() argument 344 if (!Obj->is64Bit()) { in getSection() 345 MachO::section Sect = Obj->getSection(Sec); in getSection() [all …]
|
| H A D | COFFDumper.cpp | 83 COFFDumper(const llvm::object::COFFObjectFile *Obj, ScopedPrinter &Writer) in COFFDumper() argument 84 : ObjDumper(Writer, Obj->getFileName()), Obj(Obj), Writer(Writer), in COFFDumper() 184 const llvm::object::COFFObjectFile *Obj; member in __anon4cf90a780111::COFFDumper 203 const COFFObjectFile *Obj, StringRef SectionContents) in COFFObjectDumpDelegate() argument 205 Sec = Obj->getCOFFSection(SR); in COFFObjectDumpDelegate() 249 std::unique_ptr<ObjDumper> createCOFFDumper(const object::COFFObjectFile &Obj, in createCOFFDumper() argument 251 return std::make_unique<COFFDumper>(&Obj, Writer); in createCOFFDumper() 262 auto SymI = Obj->symbol_end(); in resolveSymbol() 271 if (SymI == Obj->symbol_end()) in resolveSymbol() 332 const coff_section *Section = Obj->getCOFFSection(Sec); in printBinaryBlockWithRelocs() [all …]
|
| H A D | ObjDumper.cpp | 91 void ObjDumper::printFileSummary(StringRef FileStr, object::ObjectFile &Obj, in printFileSummary() argument 96 W.printString("Format", Obj.getFileFormatName()); in printFileSummary() 97 W.printString("Arch", Triple::getArchTypeName(Obj.getArch())); in printFileSummary() 99 std::string(formatv("{0}bit", 8 * Obj.getBytesInAddress()))); in printFileSummary() 104 getSectionRefsByNameOrIndex(const object::ObjectFile &Obj, in getSectionRefsByNameOrIndex() argument 117 SecIndex = Obj.isELF() ? 0 : 1; in getSectionRefsByNameOrIndex() 118 for (object::SectionRef SecRef : Obj.sections()) { in getSectionRefsByNameOrIndex() 119 StringRef SecName = unwrapOrError(Obj.getFileName(), SecRef.getName()); in getSectionRefsByNameOrIndex() 135 Obj.getFileName()); in getSectionRefsByNameOrIndex() 141 Obj.getFileName()); in getSectionRefsByNameOrIndex() [all …]
|
| /src/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
| H A D | RuntimeDyldMachOI386.h | 37 const MachOObjectFile &Obj = in processRelocationRef() local 40 Obj.getRelocation(RelI->getRawDataRefImpl()); in processRelocationRef() 41 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() 43 if (Obj.isRelocationScattered(RelInfo)) { in processRelocationRef() 46 return processSECTDIFFRelocation(SectionID, RelI, Obj, in processRelocationRef() 49 return processScatteredVANILLA(SectionID, RelI, Obj, ObjSectionToID); in processRelocationRef() 66 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 69 if (auto ValueOrErr = getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)) in processRelocationRef() 127 Error finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument 136 return populateJumpTable(cast<MachOObjectFile>(Obj), Section, SectionID); in finalizeSection() [all …]
|
| /src/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | IntrusiveRefCntPtr.h | 174 T *Obj = nullptr; variable 180 IntrusiveRefCntPtr(T *obj) : Obj(obj) { retain(); } in IntrusiveRefCntPtr() 181 IntrusiveRefCntPtr(const IntrusiveRefCntPtr &S) : Obj(S.Obj) { retain(); } in IntrusiveRefCntPtr() 182 IntrusiveRefCntPtr(IntrusiveRefCntPtr &&S) : Obj(S.Obj) { S.Obj = nullptr; } in IntrusiveRefCntPtr() 186 IntrusiveRefCntPtr(IntrusiveRefCntPtr<X> S) : Obj(S.get()) { in IntrusiveRefCntPtr() 187 S.Obj = nullptr; in IntrusiveRefCntPtr() 192 IntrusiveRefCntPtr(std::unique_ptr<X> S) : Obj(S.release()) { in IntrusiveRefCntPtr() 203 T &operator*() const { return *Obj; } 204 T *operator->() const { return Obj; } 205 T *get() const { return Obj; } in get() [all …]
|
| /src/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
| H A D | ObjectFileInterface.cpp | 43 const object::MachOObjectFile &Obj) { in getMachOObjectFileSymbolInfo() argument 46 for (auto &Sym : Obj.symbols()) { in getMachOObjectFileSymbolInfo() 81 for (auto &Sec : Obj.sections()) { in getMachOObjectFileSymbolInfo() 82 auto SecType = Obj.getSectionType(Sec); in getMachOObjectFileSymbolInfo() 84 addInitSymbol(I, ES, Obj.getFileName()); in getMachOObjectFileSymbolInfo() 87 auto SegName = Obj.getSectionFinalSegmentName(Sec.getRawDataRefImpl()); in getMachOObjectFileSymbolInfo() 88 auto SecName = cantFail(Obj.getSectionName(Sec.getRawDataRefImpl())); in getMachOObjectFileSymbolInfo() 90 addInitSymbol(I, ES, Obj.getFileName()); in getMachOObjectFileSymbolInfo() 100 const object::ELFObjectFileBase &Obj) { in getELFObjectFileSymbolInfo() argument 103 for (auto &Sym : Obj.symbols()) { in getELFObjectFileSymbolInfo() [all …]
|
| /src/contrib/llvm-project/llvm/lib/IR/ |
| H A D | User.cpp | 138 User *Obj = reinterpret_cast<User*>(End); in allocateFixedOperandUser() local 139 Obj->NumUserOperands = Us; in allocateFixedOperandUser() 140 Obj->HasHungOffUses = false; in allocateFixedOperandUser() 141 Obj->HasDescriptor = DescBytes != 0; in allocateFixedOperandUser() 143 new (Start) Use(Obj); in allocateFixedOperandUser() 150 return Obj; in allocateFixedOperandUser() 165 User *Obj = reinterpret_cast<User *>(HungOffOperandList + 1); in operator new() local 166 Obj->NumUserOperands = 0; in operator new() 167 Obj->HasHungOffUses = true; in operator new() 168 Obj->HasDescriptor = false; in operator new() [all …]
|
| /src/contrib/llvm-project/llvm/lib/ObjectYAML/ |
| H A D | COFFEmitter.cpp | 37 COFFParser(COFFYAML::Object &Obj, yaml::ErrorHandler EH) in COFFParser() 38 : Obj(Obj), SectionTableStart(0), SectionTableSize(0), ErrHandler(EH) { in COFFParser() 45 return static_cast<int32_t>(Obj.Sections.size()) > in useBigObj() 49 bool isPE() const { return Obj.OptionalHeader.has_value(); } in isPE() 50 bool is64Bit() const { return COFF::is64Bit(Obj.Header.Machine); } in is64Bit() 53 return Obj.OptionalHeader->Header.FileAlignment; in getFileAlignment() 65 for (COFFYAML::Section &Sec : Obj.Sections) { in parseSections() 100 for (COFFYAML::Symbol &Sym : Obj.Symbols) { in parseSymbols() 139 COFFYAML::Object &Obj; member 162 CP.Obj.Header.SizeOfOptionalHeader = in layoutOptionalHeader() [all …]
|
| H A D | XCOFFEmitter.cpp | 36 XCOFFWriter(XCOFFYAML::Object &Obj, raw_ostream &OS, yaml::ErrorHandler EH) in XCOFFWriter() argument 37 : Obj(Obj), W(OS, llvm::endianness::big), ErrHandler(EH), in XCOFFWriter() 39 Is64Bit = Obj.Header.Magic == (llvm::yaml::Hex16)XCOFF::XCOFF64; in XCOFFWriter() 71 XCOFFYAML::Object &Obj; member in __anon60cb6a2e0111::XCOFFWriter 82 XCOFFYAML::FileHeader InitFileHdr = Obj.Header; 84 std::vector<XCOFFYAML::Section> InitSections = Obj.Sections; 233 if (Obj.StrTbl.RawContent) { in initStringTable() 234 size_t RawSize = Obj.StrTbl.RawContent->binary_size(); in initStringTable() 235 if (Obj.StrTbl.Strings || Obj.StrTbl.Length) { in initStringTable() 240 if (Obj.StrTbl.ContentSize && *Obj.StrTbl.ContentSize < RawSize) { in initStringTable() [all …]
|
| /src/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RuntimeDyldMachO.cpp | 37 getObjectForDebug(const ObjectFile &Obj) const override { in getObjectForDebug() 59 const MachOObjectFile &Obj = in processScatteredVANILLA() local 62 Obj.getRelocation(RelI->getRawDataRefImpl()); in processScatteredVANILLA() 65 uint32_t RelocType = Obj.getAnyRelocationType(RE); in processScatteredVANILLA() 66 bool IsPCRel = Obj.getAnyRelocationPCRel(RE); in processScatteredVANILLA() 67 unsigned Size = Obj.getAnyRelocationLength(RE); in processScatteredVANILLA() 73 unsigned SymbolBaseAddr = Obj.getScatteredRelocationValue(RE); in processScatteredVANILLA() 74 section_iterator TargetSI = getSectionByAddress(Obj, SymbolBaseAddr); in processScatteredVANILLA() 75 assert(TargetSI != Obj.section_end() && "Can't find section for symbol"); in processScatteredVANILLA() 81 findOrEmitSection(Obj, TargetSection, IsCode, ObjSectionToID)) in processScatteredVANILLA() [all …]
|
| /src/contrib/llvm-project/llvm/tools/llvm-objdump/ |
| H A D | COFFDump.cpp | 43 : Dumper(O), Obj(O) { in COFFDumper() 44 Is64 = !Obj.getPE32Header(); in COFFDumper() 59 const llvm::object::COFFObjectFile &Obj; member in __anondb4b3f1b0111::COFFDumper 65 objdump::createCOFFDumper(const object::COFFObjectFile &Obj) { in createCOFFDumper() argument 66 return std::make_unique<COFFDumper>(Obj); in createCOFFDumper() 185 if (const data_directory *Data = Obj.getDataDirectory(I)) { in printPEHeader() 325 static Error resolveSectionAndAddress(const COFFObjectFile *Obj, in resolveSectionAndAddress() argument 336 ResolvedSection = Obj->getCOFFSection(**Iter); in resolveSectionAndAddress() 359 getSectionContents(const COFFObjectFile *Obj, in getSectionContents() argument 366 if (Error E = resolveSectionAndAddress(Obj, Sym, Section, Addr)) in getSectionContents() [all …]
|
| H A D | ELFDump.cpp | 30 ELFDumper(const ELFObjectFile<ELFT> &O) : Dumper(O), Obj(O) {} in ELFDumper() 35 const ELFObjectFile<ELFT> &Obj; member in __anon239dfa340111::ELFDumper 37 const ELFFile<ELFT> &getELFFile() const { return Obj.getELFFile(); } in getELFFile() 46 static std::unique_ptr<Dumper> createDumper(const ELFObjectFile<ELFT> &Obj) { in createDumper() argument 47 return std::make_unique<ELFDumper<ELFT>>(Obj); in createDumper() 51 objdump::createELFDumper(const object::ELFObjectFileBase &Obj) { in createELFDumper() argument 52 if (const auto *O = dyn_cast<ELF32LEObjectFile>(&Obj)) in createELFDumper() 54 if (const auto *O = dyn_cast<ELF32BEObjectFile>(&Obj)) in createELFDumper() 56 if (const auto *O = dyn_cast<ELF64LEObjectFile>(&Obj)) in createELFDumper() 58 return createDumper(cast<ELF64BEObjectFile>(Obj)); in createELFDumper() [all …]
|
| H A D | llvm-objdump.cpp | 378 static Expected<std::unique_ptr<Dumper>> createDumper(const ObjectFile &Obj) { in createDumper() argument 379 if (const auto *O = dyn_cast<COFFObjectFile>(&Obj)) in createDumper() 381 if (const auto *O = dyn_cast<ELFObjectFileBase>(&Obj)) in createDumper() 383 if (const auto *O = dyn_cast<MachOObjectFile>(&Obj)) in createDumper() 385 if (const auto *O = dyn_cast<WasmObjectFile>(&Obj)) in createDumper() 387 if (const auto *O = dyn_cast<XCOFFObjectFile>(&Obj)) in createDumper() 513 static const Target *getTarget(const ObjectFile *Obj) { in getTarget() argument 517 TheTriple = Obj->makeTriple(); in getTarget() 520 auto Arch = Obj->getArch(); in getTarget() 522 Obj->setARMSubArch(TheTriple); in getTarget() [all …]
|
| /src/contrib/llvm-project/clang/lib/InstallAPI/ |
| H A D | FileList.cpp | 45 Expected<StringRef> parseString(const Object *Obj, StringRef Key, 47 Expected<StringRef> parsePath(const Object *Obj); 48 Expected<HeaderType> parseType(const Object *Obj); 49 std::optional<clang::Language> parseLanguage(const Object *Obj); 62 Implementation::parseString(const Object *Obj, StringRef Key, StringRef Error) { in parseString() argument 63 auto Str = Obj->getString(Key); in parseString() 69 Expected<HeaderType> Implementation::parseType(const Object *Obj) { in parseType() argument 71 parseString(Obj, "type", "required field 'type' not specified"); in parseType() 86 Expected<StringRef> Implementation::parsePath(const Object *Obj) { in parsePath() argument 87 auto Path = parseString(Obj, "path", "required field 'path' not specified"); in parsePath() [all …]
|
| /src/contrib/llvm-project/llvm/lib/TextAPI/BinaryReader/ |
| H A D | DylibReader.cpp | 48 static TripleVec constructTriples(MachOObjectFile *Obj, in constructTriples() argument 58 auto Vers = Obj->getVersionMinLoadCommand(cmd); in constructTriples() 66 for (const auto &cmd : Obj->load_commands()) { in constructTriples() 95 OSVersion = getOSVersionStr(Obj->getBuildVersionLoadCommand(cmd).minos); in constructTriples() 96 switch (Obj->getBuildVersionLoadCommand(cmd).platform) { in constructTriples() 145 static Error readMachOHeader(MachOObjectFile *Obj, RecordsSlice &Slice) { in readMachOHeader() argument 146 auto H = Obj->getHeader(); in readMachOHeader() 168 for (const auto &LCI : Obj->load_commands()) { in readMachOHeader() 171 auto DLLC = Obj->getDylibIDLoadCommand(LCI); in readMachOHeader() 178 auto DLLC = Obj->getDylibIDLoadCommand(LCI); in readMachOHeader() [all …]
|