| /freebsd-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 …]
|
| /freebsd-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 …]
|
| /freebsd-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 …]
|
| /freebsd-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, Ou in createWriter() 192 dumpSectionToFile(StringRef SecName,StringRef Filename,Object & Obj) dumpSectionToFile() argument 221 replaceDebugSections(Object & Obj,function_ref<bool (const SectionBase &)> ShouldReplace,function_ref<Expected<SectionBase * > (const SectionBase *)> AddSection) replaceDebugSections() argument 266 isRequiredByABISymbol(const Object & Obj,const Symbol & Sym) isRequiredByABISymbol() argument 286 updateAndRemoveSymbols(const CommonConfig & Config,const ELFConfig & ELFConfig,Object & Obj) updateAndRemoveSymbols() argument 386 replaceAndRemoveSections(const CommonConfig & Config,const ELFConfig & ELFConfig,Object & Obj) replaceAndRemoveSections() argument 547 addSymbol(Object & Obj,const NewSymbolInfo & SymInfo,uint8_t DefaultVisibility) addSymbol() argument 617 handleArgs(const CommonConfig & Config,const ELFConfig & ELFConfig,Object & Obj) handleArgs() argument 780 writeOutput(const CommonConfig & Config,Object & Obj,raw_ostream & Out,ElfType OutputElfType) writeOutput() argument 793 Expected<std::unique_ptr<Object>> Obj = Reader.create(true); executeObjcopyOnIHex() local 809 Expected<std::unique_ptr<Object>> Obj = Reader.create(true); executeObjcopyOnRawBinary() local 827 Expected<std::unique_ptr<Object>> Obj = executeObjcopyOnBinary() local [all...] |
| H A D | ELFObject.cpp | 41 Obj.ProgramHdrSegment.Offset + Seg.Index * sizeof(Elf_Phdr); in writePhdr() 1273 Obj->Flags = 0x0; in initSections() 1274 Obj->Type = ET_REL; in initSections() 1275 Obj->OSABI = ELFOSABI_NONE; in initSections() 1276 Obj->ABIVersion = 0; in initSections() 1277 Obj->Entry = 0x0; in initSections() 1278 Obj->Machine = EM_NONE; in initSections() 1279 Obj->Version = 1; in initSections() 1282 void BasicELFBuilder::initHeaderSegment() { Obj->ElfHdrSegment.Index = 0; } in addData() 1285 auto &StrTab = Obj in addData() 1379 ELFBuilder(const ELFObjectFile<ELFT> & ElfObj,Object & Obj,std::optional<StringRef> ExtractPartition) ELFBuilder() argument 1957 auto Obj = std::make_unique<Object>(); create() local 2116 ELFWriter(Object & Obj,raw_ostream & Buf,bool WSH,bool OnlyKeepDebug) ELFWriter() argument 2343 layoutSectionsForOnlyKeepDebug(Object & Obj,uint64_t Off) layoutSectionsForOnlyKeepDebug() argument 2503 removeUnneededSections(Object & Obj) removeUnneededSections() argument [all...] |
| /freebsd-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 …]
|
| /freebsd-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 …]
|
| /freebsd-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 __anon898cf19f0111::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() 84 : ObjDumper(Writer, Obj->getFileName()), Obj(Obj), Writer(Writer), in COFFDumper() 184 const llvm::object::COFFObjectFile *Obj; 203 const COFFObjectFile *Obj, StringRef SectionContents) in COFFObjectDumpDelegate() 205 Sec = Obj->getCOFFSection(SR); in COFFObjectDumpDelegate() 249 std::unique_ptr<ObjDumper> createCOFFDumper(const object::COFFObjectFile &Obj, in createCOFFDumper() 251 return std::make_unique<COFFDumper>(&Obj, Writer); in createCOFFDumper() 262 auto SymI = Obj in resolveSymbol() 82 COFFDumper(const llvm::object::COFFObjectFile * Obj,ScopedPrinter & Writer) COFFDumper() argument 183 const llvm::object::COFFObjectFile *Obj; global() member in __anonec5502550111::COFFDumper 202 COFFObjectDumpDelegate(COFFDumper & CD,const SectionRef & SR,const COFFObjectFile * Obj,StringRef SectionContents) COFFObjectDumpDelegate() argument 248 createCOFFDumper(const object::COFFObjectFile & Obj,ScopedPrinter & Writer) createCOFFDumper() argument 630 getSymbolAuxData(const COFFObjectFile * Obj,COFFSymbolRef Symbol,uint8_t AuxSymbolIdx,const T * & Aux) getSymbolAuxData() argument 1623 getSectionName(const llvm::object::COFFObjectFile * Obj,int32_t SectionNumber,const coff_section * Section) getSectionName() argument [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 in getSectionRefsByNameOrIndex() 146 maybeDecompress(const object::ObjectFile & Obj,StringRef SectionName,StringRef & SectionContent,SmallString<0> & Out) maybeDecompress() argument 159 printSectionsAsString(const object::ObjectFile & Obj,ArrayRef<std::string> Sections,bool Decompress) printSectionsAsString() argument 181 printSectionsAsHex(const object::ObjectFile & Obj,ArrayRef<std::string> Sections,bool Decompress) printSectionsAsHex() argument [all...] |
| /freebsd-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 …]
|
| /freebsd-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 …]
|
| /freebsd-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 …]
|
| /freebsd-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 …]
|
| /freebsd-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 [all...] |
| H A D | XCOFFEmitter.cpp | 36 XCOFFWriter(XCOFFYAML::Object &Obj, raw_ostream &OS, yaml::ErrorHandler EH) in XCOFFWriter() 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; 82 XCOFFYAML::FileHeader InitFileHdr = Obj.Header; 84 std::vector<XCOFFYAML::Section> InitSections = Obj.Sections; in writeName() 233 if (Obj.StrTbl.RawContent) { 234 size_t RawSize = Obj.StrTbl.RawContent->binary_size(); in initFileHeader() 235 if (Obj in initFileHeader() 35 XCOFFWriter(XCOFFYAML::Object & Obj,raw_ostream & OS,yaml::ErrorHandler EH) XCOFFWriter() argument 68 XCOFFYAML::Object &Obj; global() member in __anon621dc6cb0111::XCOFFWriter [all...] |
| /freebsd-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 …]
|
| /freebsd-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 __anondc9d9bb80111::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 __anone598b7310111::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() 90 getRelocationValueString(const ELFObjectFile<ELFT> * Obj,const RelocationRef & RelRef,SmallVectorImpl<char> & Result) getRelocationValueString() argument 161 getELFRelocationValueString(const ELFObjectFileBase * Obj,const RelocationRef & Rel,SmallVectorImpl<char> & Result) getELFRelocationValueString() argument 175 getSectionLMA(const ELFFile<ELFT> & Obj,const object::ELFSectionRef & Sec) getSectionLMA() argument [all...] |
| H A D | llvm-objdump.cpp | 378 static Expected<std::unique_ptr<Dumper>> createDumper(const ObjectFile &Obj) { in reportCmdLineError() 379 if (const auto *O = dyn_cast<COFFObjectFile>(&Obj)) 381 if (const auto *O = dyn_cast<ELFObjectFileBase>(&Obj)) in warnOnNoMatchForSections() 383 if (const auto *O = dyn_cast<MachOObjectFile>(&Obj)) in warnOnNoMatchForSections() 385 if (const auto *O = dyn_cast<WasmObjectFile>(&Obj)) in warnOnNoMatchForSections() 387 if (const auto *O = dyn_cast<XCOFFObjectFile>(&Obj)) in warnOnNoMatchForSections() 513 static const Target *getTarget(const ObjectFile *Obj) { in isArmElf() 517 TheTriple = Obj->makeTriple(); in isCSKYElf() 520 auto Arch = Obj->getArch(); in hasMappingSymbols() argument 522 Obj in hasMappingSymbols() 262 createDumper(const ObjectFile & Obj) createDumper() argument 397 getTarget(const ObjectFile * Obj) getTarget() argument 428 const ObjectFile *Obj = Rel.getObject(); getRelocationValueString() local 505 isAArch64Elf(const ObjectFile & Obj) isAArch64Elf() argument 510 isArmElf(const ObjectFile & Obj) isArmElf() argument 515 isCSKYElf(const ObjectFile & Obj) isCSKYElf() argument 880 DisassemblerTarget(const Target * TheTarget,ObjectFile & Obj,StringRef TripleName,StringRef MCPU,SubtargetFeatures & Features) DisassemblerTarget() argument 957 getElfSymbolType(const ObjectFile & Obj,const SymbolRef & Sym) getElfSymbolType() argument 980 addDynamicElfSymbols(const ELFObjectFile<ELFT> & Obj,std::map<SectionRef,SectionSymbolsTy> & AllSymbols) addDynamicElfSymbols() argument 1009 addDynamicElfSymbols(const ELFObjectFileBase & Obj,std::map<SectionRef,SectionSymbolsTy> & AllSymbols) addDynamicElfSymbols() argument 1023 getWasmCodeSection(const WasmObjectFile & Obj) getWasmCodeSection() argument 1033 addMissingWasmCodeSymbols(const WasmObjectFile & Obj,std::map<SectionRef,SectionSymbolsTy> & AllSymbols) addMissingWasmCodeSymbols() argument 1060 addPltEntries(const ObjectFile & Obj,std::map<SectionRef,SectionSymbolsTy> & AllSymbols,StringSaver & Saver) addPltEntries() argument 1116 getRelocsMap(object::ObjectFile const & Obj) getRelocsMap() argument 1145 const ObjectFile *Obj = Section.getObject(); shouldAdjustVA() local 1167 dumpARMELFData(uint64_t SectionAddr,uint64_t Index,uint64_t End,const ObjectFile & Obj,ArrayRef<uint8_t> Bytes,ArrayRef<MappingSymbolPair> MappingSymbols,const MCSubtargetInfo & STI,raw_ostream & OS) dumpARMELFData() argument 1230 createSymbolInfo(const ObjectFile & Obj,const SymbolRef & Symbol,bool IsMappingSymbol) createSymbolInfo() argument 1257 createDummySymbolInfo(const ObjectFile & Obj,const uint64_t Addr,StringRef & Name,uint8_t Type) createDummySymbolInfo() argument 1486 createFakeELFSections(ObjectFile & Obj) createFakeELFSections() argument 1503 fetchBinaryByBuildID(const ObjectFile & Obj) fetchBinaryByBuildID() argument 1519 disassembleObject(ObjectFile & Obj,const ObjectFile & DbgObj,DisassemblerTarget & PrimaryTarget,std::optional<DisassemblerTarget> & SecondaryTarget,SourcePrinter & SP,bool InlineRelocs) disassembleObject() argument 2391 disassembleObject(ObjectFile * Obj,bool InlineRelocs) disassembleObject() argument 2574 shouldDisplayLMA(const ObjectFile & Obj) shouldDisplayLMA() argument 2583 getMaxSectionNameWidth(const ObjectFile & Obj) getMaxSectionNameWidth() argument 2593 printSectionHeaders(ObjectFile & Obj) printSectionHeaders() argument 2639 printSectionContents(const ObjectFile * Obj) printSectionContents() argument 2927 printRawClangAST(const ObjectFile * Obj) printRawClangAST() argument 2963 printFaultMaps(const ObjectFile * Obj) printFaultMaps() argument 3073 shouldWarnForInvalidStartStopAddress(ObjectFile * Obj) shouldWarnForInvalidStartStopAddress() argument 3081 checkForInvalidStartStopAddress(ObjectFile * Obj,uint64_t Start,uint64_t Stop) checkForInvalidStartStopAddress() argument [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/TextAPI/BinaryReader/ |
| H A D | DylibReader.cpp | 48 static TripleVec constructTriples(MachOObjectFile *Obj, in constructTriples() 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() 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 in readMachOHeader() 46 constructTriples(MachOObjectFile * Obj,const Architecture ArchT) constructTriples() argument 143 readMachOHeader(MachOObjectFile * Obj,RecordsSlice & Slice) readMachOHeader() argument 247 readSymbols(MachOObjectFile * Obj,RecordsSlice & Slice,const ParseOption & Opt) readSymbols() argument 332 load(MachOObjectFile * Obj,RecordsSlice & Slice,const ParseOption & Opt,const Architecture Arch) load() argument 357 if (auto *Obj = dyn_cast<MachOObjectFile>(&Bin)) { readFile() local 400 auto &Obj = *ObjOrErr.get(); readFile() local [all...] |