| /freebsd-13.1/contrib/llvm-project/llvm/lib/BinaryFormat/ |
| H A D | MsgPackReader.cpp | 37 Obj.Kind = Type::Nil; in read() 41 Obj.Bool = true; in read() 45 Obj.Bool = false; in read() 48 Obj.Kind = Type::Int; in read() 51 Obj.Kind = Type::Int; in read() 54 Obj.Kind = Type::Int; in read() 57 Obj.Kind = Type::Int; in read() 60 Obj.Kind = Type::UInt; in read() 63 Obj.Kind = Type::UInt; in read() 150 Obj.Int = I; in read() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objcopy/COFF/ |
| H A D | Writer.cpp | 180 if (Obj.IsPE) { in finalize() 182 sizeof(Obj.DosHeader) + Obj.DosStub.size(); in finalize() 186 Obj.PeHeader.NumberOfRvaAndSize = Obj.DataDirectories.size(); in finalize() 192 Obj.CoffFileHeader.NumberOfSections = Obj.getSections().size(); in finalize() 206 if (Obj.IsPE) { in finalize() 245 if (Obj.IsPE) { in writeHeaders() 246 memcpy(Ptr, &Obj.DosHeader, sizeof(Obj.DosHeader)); in writeHeaders() 248 memcpy(Ptr, Obj.DosStub.data(), Obj.DosStub.size()); in writeHeaders() 280 if (Obj.IsPE) { in writeHeaders() 282 memcpy(Ptr, &Obj.PeHeader, sizeof(Obj.PeHeader)); in writeHeaders() [all …]
|
| H A D | Reader.cpp | 28 Obj.Is64 = COFFObj.is64(); in readExecutableHeaders() 32 Obj.IsPE = true; in readExecutableHeaders() 33 Obj.DosHeader = *DH; in readExecutableHeaders() 42 copyPeHeader(Obj.PeHeader, *PE32); in readExecutableHeaders() 44 Obj.BaseOfData = PE32->BaseOfData; in readExecutableHeaders() 80 Obj.addSections(Sections); in readSections() 153 Obj.addSymbols(Symbols); in readSymbols() 199 Obj->CoffFileHeader = *CFH; in create() 214 if (Error E = readSections(*Obj)) in create() 218 if (Error E = setSymbolTargets(*Obj)) in create() [all …]
|
| H A D | COFFObjcopy.cpp | 34 static uint64_t getNextRVA(const Object &Obj) { in getNextRVA() argument 35 if (Obj.getSections().empty()) in getNextRVA() 37 const Section &Last = Obj.getSections().back(); in getNextRVA() 39 Obj.IsPE ? Obj.PeHeader.SectionAlignment : 1); in getNextRVA() 72 Obj.IsPE ? Obj.PeHeader.FileAlignment : 1) in addSection() 81 Obj.addSections(Sec); in addSection() 173 if (Error E = Obj.markSymbols()) in handleArgs() 242 Obj, SecName, in handleArgs() 261 Object *Obj = ObjOrErr->get(); in executeObjcopyOnBinary() local 263 if (Error E = handleArgs(Config, *Obj)) in executeObjcopyOnBinary() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-pdbutil/ |
| H A D | PdbYaml.cpp | 105 IO.mapOptional("MSF", Obj.Headers); in mapping() 143 IO.mapOptional("Age", Obj.Age, 1U); in mapping() 144 IO.mapOptional("Guid", Obj.Guid); in mapping() 152 IO.mapOptional("Age", Obj.Age, 1U); in mapping() 164 IO.mapRequired("Records", Obj.Records); in mapping() 169 IO.mapRequired("Records", Obj.PubSyms); in mapping() 174 IO.mapRequired("Name", Obj.StreamName); in mapping() 180 IO.mapRequired("Records", Obj.Symbols); in mapping() 184 IO.mapRequired("Module", Obj.Mod); in mapping() 185 IO.mapOptional("ObjFile", Obj.Obj, Obj.Mod); in mapping() [all …]
|
| H A D | YAMLOutputStyle.cpp | 86 Obj.Headers.emplace(); in dumpFileHeaders() 94 Obj.Headers->NumStreams = in dumpFileHeaders() 114 Obj.StringTable.emplace(); in dumpStringTable() 131 Obj.StreamSizes.emplace(); in dumpStreamMetadata() 142 Obj.StreamMap.emplace(); in dumpStreamDirectory() 161 Obj.PdbStream.emplace(); in dumpPDBStream() 207 Obj.DbiStream.emplace(); in dumpDbiStream() 291 Obj.TpiStream.emplace(); in dumpTpiStream() 318 Obj.IpiStream.emplace(); in dumpIpiStream() 335 Obj.PublicsStream.emplace(); in dumpPublics() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objcopy/ELF/ |
| H A D | ELFObjcopy.cpp | 67 if (&Sec == Obj.SectionNames) in onlyKeepDWOPred() 250 if (!Obj.SymbolTable) in updateAndRemoveSymbols() 445 (Obj.SymbolTable && Obj.SymbolTable->getStrTab() == &Sec)) in replaceAndRemoveSections() 469 Obj.SymbolTable && !Obj.SymbolTable->empty()) { in replaceAndRemoveSections() 471 if (&Sec == Obj.SymbolTable || &Sec == Obj.SymbolTable->getStrTab()) in replaceAndRemoveSections() 574 [&Obj](const SectionBase &Sec) { return onlyKeepDWOPred(Obj, Sec); }); in handleArgs() 709 Obj.Entry = Config.EntryExpr(Obj.Entry); in handleArgs() 727 if (!Obj) in executeObjcopyOnIHex() 728 return Obj.takeError(); in executeObjcopyOnIHex() 743 if (!Obj) in executeObjcopyOnRawBinary() [all …]
|
| H A D | Object.cpp | 1253 Obj->Flags = 0x0; in initFileHeader() 1254 Obj->Type = ET_REL; in initFileHeader() 1257 Obj->Entry = 0x0; in initFileHeader() 1259 Obj->Version = 1; in initFileHeader() 1830 if (Error Err = Obj.SectionIndexTable->initialize(Obj.sections())) in readSections() 1837 if (Error Err = Obj.SymbolTable->initialize(Obj.sections())) in readSections() 2110 : Writer(Obj, Buf), WriteSectionHeaders(WSH && Obj.HadShdrs), in ELFWriter() 2404 Obj.SHOff = Offset; in assignOffsets() 2411 return Obj.SHOff; in totalSize() 2438 if (Obj.isRelocatable() || Obj.SymbolTable == nullptr || in removeUnneededSections() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | SafeStackLayout.cpp | 57 unsigned Start = AdjustStackOffset(LastRegionEnd, Obj.Size, Obj.Alignment); in layoutObject() 58 unsigned End = Start + Obj.Size; in layoutObject() 65 << Obj.Alignment << ", range " << Obj.Range << "\n"); in layoutObject() 67 unsigned Start = AdjustStackOffset(0, Obj.Size, Obj.Alignment); in layoutObject() 68 unsigned End = Start + Obj.Size; in layoutObject() 80 Start = AdjustStackOffset(R.End, Obj.Size, Obj.Alignment); in layoutObject() 81 End = Start + Obj.Size; in layoutObject() 127 R.Range.join(Obj.Range); in layoutObject() 132 ObjectOffsets[Obj.Handle] = End; in layoutObject() 148 for (auto &Obj : StackObjects) in computeLayout() local [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
| H A D | RuntimeDyldMachOI386.h | 38 const MachOObjectFile &Obj = in processRelocationRef() local 41 Obj.getRelocation(RelI->getRawDataRefImpl()); in processRelocationRef() 42 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() 44 if (Obj.isRelocationScattered(RelInfo)) { in processRelocationRef() 149 const MachOObjectFile &Obj = in processSECTDIFFRelocation() local 152 Obj.getRelocation(RelI->getRawDataRefImpl()); in processSECTDIFFRelocation() 155 uint32_t RelocType = Obj.getAnyRelocationType(RE); in processSECTDIFFRelocation() 156 bool IsPCRel = Obj.getAnyRelocationPCRel(RE); in processSECTDIFFRelocation() 157 unsigned Size = Obj.getAnyRelocationLength(RE); in processSECTDIFFRelocation() 165 Obj.getRelocation(RelI->getRawDataRefImpl()); in processSECTDIFFRelocation() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-readobj/ |
| H A D | COFFDumper.cpp | 82 : ObjDumper(Writer, Obj->getFileName()), Obj(Obj), Writer(Writer), in COFFDumper() 204 Sec = Obj->getCOFFSection(SR); in COFFObjectDumpDelegate() 261 auto SymI = Obj->symbol_end(); in resolveSymbol() 270 if (SymI == Obj->symbol_end()) in resolveSymbol() 788 if (Obj->is64()) in printCOFFLoadConfig() 1004 Obj->getFileName()); in printCodeViewSymbolSection() 1448 SymbolIndex = Obj->getSymbolIndex(Obj->getCOFFSymbol(*Symbol)); in printRelocation() 1601 switch (Obj->getMachine()) { in printUnwindInfo() 1798 Error E = RSF.load(Obj, S); in printCOFFResources() 1935 if (Obj->isLittleEndian()) in printStackMap() [all …]
|
| H A D | MachODumper.cpp | 30 : ObjDumper(Writer, Obj->getFileName()), Obj(Obj) {} in MachODumper() 62 const MachOObjectFile *Obj; member in __anon79e53c010111::MachODumper 331 if (!Obj->is64Bit()) { in getSection() 360 if (!Obj->is64Bit()) { in getSegment() 392 if (!Obj->is64Bit()) { in getSymbol() 411 if (!Obj->is64Bit()) { in printFileHeaders() 486 if (Obj->is64Bit()) in printSectionHeaders() 561 if (SecI != Obj->section_end()) in printRelocation() 640 if (SecI != Obj->section_end()) in printSymbol() 670 for (auto Sec : Obj->sections()) { in printStackMap() [all …]
|
| H A D | XCOFFDumper.cpp | 27 : ObjDumper(Writer, Obj.getFileName()), Obj(Obj) {} in XCOFFDumper() 80 if (Obj.is64Bit()) { in printFileHeaders() 100 if (Obj.is64Bit()) in printSectionHeaders() 107 if (Obj.is64Bit()) in printRelocations() 137 auto Relocations = unwrapOrError(Obj.getFileName(), Obj.relocations(Sec)); in printRelocations() 145 Obj.getFileName(), Obj.getSymbolNameByIndex(Reloc.SymbolIndex)); in printRelocations() 180 unwrapOrError(Obj.getFileName(), Obj.getCFileName(AuxEntPtr)); in printFileAuxEnt() 187 if (Obj.is64Bit()) { in printFileAuxEnt() 232 if (Obj.is64Bit()) { in printCsectAuxEnt() 336 unwrapOrError(Obj.getFileName(), Obj.getSymbolSectionName(SymbolEntRef)); in printSymbol() [all …]
|
| H A D | WasmDumper.cpp | 59 WasmDumper(const WasmObjectFile *Obj, ScopedPrinter &Writer) in WasmDumper() argument 60 : ObjDumper(Writer, Obj->getFileName()), Obj(Obj) {} in WasmDumper() 76 const WasmObjectFile *Obj; member in __anon9156bb110111::WasmDumper 80 W.printHex("Version", Obj->getHeader().Version); in printFileHeaders() 92 if (SI != Obj->symbol_end()) in printRelocation() 93 SymName = unwrapOrError(Obj->getFileName(), SI->getName()); in printRelocation() 124 for (const SectionRef &Section : Obj->sections()) { in printRelocations() 150 for (const SymbolRef &Symbol : Obj->symbols()) in printSymbols() 156 for (const SectionRef &Section : Obj->sections()) { in printSectionHeaders() 157 const WasmSection &WasmSec = Obj->getWasmSection(Section); in printSectionHeaders() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objdump/ |
| H A D | ELFDump.cpp | 59 const ELFFile<ELFT> &EF = Obj->getELFFile(); in getRelocationValueString() 74 const typename ELFT::Rela *ERela = Obj->getRela(Rel); in getRelocationValueString() 78 const typename ELFT::Rel *ERel = Obj->getRel(Rel); in getRelocationValueString() 92 Obj->getSymbol(SI->getRawDataRefImpl()); in getRelocationValueString() 133 if (auto *ELF32LE = dyn_cast<ELF32LEObjectFile>(Obj)) in getELFRelocationValueString() 135 if (auto *ELF64LE = dyn_cast<ELF64LEObjectFile>(Obj)) in getELFRelocationValueString() 137 if (auto *ELF32BE = dyn_cast<ELF32BEObjectFile>(Obj)) in getELFRelocationValueString() 139 auto *ELF64BE = cast<ELF64BEObjectFile>(Obj); in getELFRelocationValueString() 144 static uint64_t getSectionLMA(const ELFFile<ELFT> &Obj, in getSectionLMA() argument 146 auto PhdrRangeOrErr = Obj.program_headers(); in getSectionLMA() [all …]
|
| H A D | COFFDump.cpp | 172 ResolvedSection = Obj->getCOFFSection(**Iter); in resolveSectionAndAddress() 195 getSectionContents(const COFFObjectFile *Obj, in getSectionContents() argument 241 if (Error E = Obj->getVaPtr(TableVA, IntPtr)) in printSEHTable() 242 reportError(std::move(E), Obj->getFileName()); in printSEHTable() 290 reportError(std::move(E), Obj->getFileName()); in printTLSDirectory() 305 if (!Obj->getPE32Header()) in printLoadConfiguration() 322 reportError(std::move(E), Obj->getFileName()); in printLoadConfiguration() 542 if (Obj->getRvaPtr(RF.UnwindInfoOffset, addr)) in printRuntimeFunction() 582 Obj, Rels, in printRuntimeFunctionRels() 586 reportError(std::move(E), Obj->getFileName()); in printRuntimeFunctionRels() [all …]
|
| H A D | llvm-objdump.cpp | 445 return isArmElf(Obj) || isAArch64Elf(Obj); in hasMappingSymbols() 674 assert(Obj->isELF()); in getElfSymbolType() 865 if (Obj->isELF()) in shouldAdjustVA() 963 Obj->isELF() ? getElfSymbolType(Obj, Symbol) in createSymbolInfo() 1113 if (isArmElf(Obj)) in disassembleObject() 1136 if (Obj->isELF() && getElfSymbolType(Obj, Symbol) == ELF::STT_SECTION) in disassembleObject() 1166 if (Obj->isWasm()) in disassembleObject() 1266 if (Obj->isELF() && Obj->getArch() == Triple::amdgcn) { in disassembleObject() 1774 if (!Obj->isELF()) in printDynamicRelocations() 1806 if (!Obj->isELF()) in shouldDisplayLMA() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | IntrusiveRefCntPtr.h | 164 T *Obj = nullptr; variable 171 IntrusiveRefCntPtr(const IntrusiveRefCntPtr &S) : Obj(S.Obj) { retain(); } in IntrusiveRefCntPtr() 172 IntrusiveRefCntPtr(IntrusiveRefCntPtr &&S) : Obj(S.Obj) { S.Obj = nullptr; } in IntrusiveRefCntPtr() 177 S.Obj = nullptr; in IntrusiveRefCntPtr() 195 T *get() const { return Obj; } in get() 199 T *tmp = other.Obj; in swap() 200 other.Obj = Obj; in swap() 201 Obj = tmp; in swap() 206 Obj = nullptr; in reset() 213 if (Obj) in retain() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/IR/ |
| H A D | User.cpp | 133 Obj->NumUserOperands = Us; in allocateFixedOperandUser() 134 Obj->HasHungOffUses = false; in allocateFixedOperandUser() 135 Obj->HasDescriptor = DescBytes != 0; in allocateFixedOperandUser() 137 new (Start) Use(Obj); in allocateFixedOperandUser() 144 return Obj; in allocateFixedOperandUser() 160 Obj->NumUserOperands = 0; in operator new() 161 Obj->HasHungOffUses = true; in operator new() 162 Obj->HasDescriptor = false; in operator new() 164 return Obj; in operator new() 177 if (Obj->HasHungOffUses) { in operator delete() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/ObjectYAML/ |
| H A D | COFFEmitter.cpp | 37 : Obj(Obj), SectionTableStart(0), SectionTableSize(0), ErrHandler(EH) { in COFFParser() 55 return Obj.OptionalHeader->Header.FileAlignment; in getFileAlignment() 149 COFFYAML::Object &Obj; member 172 CP.Obj.Header.SizeOfOptionalHeader = in layoutOptionalHeader() 218 for (COFFYAML::Section &S : CP.Obj.Sections) { in layoutCOFF() 231 for (COFFYAML::Section &S : CP.Obj.Sections) { in layoutCOFF() 302 CP.Obj.Header.NumberOfSections = CP.Obj.Sections.size(); in layoutCOFF() 307 CP.Obj.Header.PointerToSymbolTable = 0; in layoutCOFF() 433 << binary_le(CP.Obj.Header.Machine) in writeCOFF() 441 OS << binary_le(CP.Obj.Header.Machine) in writeCOFF() [all …]
|
| H A D | XCOFFEmitter.cpp | 35 : Obj(Obj), W(OS, support::big), ErrHandler(EH), in XCOFFWriter() 53 XCOFFYAML::Object &Obj; member in __anonac495c6d0111::XCOFFWriter 64 XCOFFYAML::FileHeader InitFileHdr = Obj.Header; 185 W.write<uint16_t>(Obj.Header.Magic ? Obj.Header.Magic : InitFileHdr.Magic); in writeFileHeader() 186 W.write<uint16_t>(Obj.Header.NumberOfSections ? Obj.Header.NumberOfSections in writeFileHeader() 188 W.write<int32_t>(Obj.Header.TimeStamp); in writeFileHeader() 189 W.write<uint32_t>(Obj.Header.SymbolTableOffset in writeFileHeader() 195 W.write<uint16_t>(Obj.Header.AuxHeaderSize); in writeFileHeader() 196 W.write<uint16_t>(Obj.Header.Flags); in writeFileHeader() 313 if (!Obj.Sections.empty()) { in writeXCOFF() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RuntimeDyldMachO.cpp | 59 const MachOObjectFile &Obj = in processScatteredVANILLA() local 62 Obj.getRelocation(RelI->getRawDataRefImpl()); in processScatteredVANILLA() 66 bool IsPCRel = Obj.getAnyRelocationPCRel(RE); in processScatteredVANILLA() 67 unsigned Size = Obj.getAnyRelocationLength(RE); in processScatteredVANILLA() 101 const MachOObjectFile &Obj = in getRelocationValueRef() local 104 Obj.getRelocation(RI->getRawDataRefImpl()); in getRelocationValueRef() 165 section_iterator SI = Obj.section_begin(); in getSectionByAddress() 166 section_iterator SE = Obj.section_end(); in getSectionByAddress() 184 assert(!Obj.is64Bit() && in populateIndirectSymbolPointersSection() 223 return Obj.isMachO(); in isCompatibleFile() [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/DumpTool/ |
| H A D | ASTSrcLocProcessor.cpp | 56 for (const auto &Item : Obj) { in toJSON() 66 for (const auto &Item : Obj) { in toJSON() 75 if (!Obj.ASTClassLocations.empty()) in toJSON() 77 if (!Obj.ASTClassRanges.empty()) in toJSON() 79 if (!Obj.TemplateParms.empty()) in toJSON() 81 if (!Obj.TypeSourceInfos.empty()) in toJSON() 83 if (!Obj.TypeLocs.empty()) in toJSON() 84 JsonObj["typeLocs"] = Obj.TypeLocs; in toJSON() 85 if (!Obj.NestedNameLocs.empty()) in toJSON() 87 if (!Obj.DeclNameInfos.empty()) in toJSON() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objcopy/MachO/ |
| H A D | MachOObjcopy.cpp | 80 return Obj.removeSections(RemovePred); in removeSections() 91 for (SymbolEntry &Sym : Obj.SymTable) { in updateAndRemoveSymbols() 110 Obj.SwiftVersion && *Obj.SwiftVersion && N->isSwiftSymbol()) in updateAndRemoveSymbols() 115 Obj.SymTable.removeSymbols(RemovePred); in updateAndRemoveSymbols() 179 for (LoadCommand &LC : Obj.LoadCommands) { in processLoadCommands() 198 for (LoadCommand &LC : Obj.LoadCommands) { in processLoadCommands() 245 Obj.LoadCommands.insert(Obj.LoadCommands.begin(), in processLoadCommands() 252 Obj.updateLoadCommandIndexes(); in processLoadCommands() 259 for (LoadCommand &LC : Obj.LoadCommands) in dumpSectionToFile() 351 markSymbols(Config, Obj); in handleArgs() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/ |
| H A D | Symbolize.cpp | 74 return symbolizeCodeCommon(Obj, ModuleOffset); in symbolizeCode() 156 return symbolizeDataCommon(Obj, ModuleOffset); in symbolizeData() 279 if (!Obj) in getGNUDebuglinkContents() 315 ArrayRef<uint8_t> bin_uuid = Obj->getUuid(); in darwinDsymMatchesBinary() 323 auto PhdrsOrErr = Obj.program_headers(); in getBuildID() 332 for (auto N : Obj.notes(P, Err)) in getBuildID() 450 auto BuildID = getBuildID(Obj); in lookUpBuildIDObject() 480 ObjectFile *Obj = ObjOrErr.get(); in getOrCreateObjectPair() local 481 assert(Obj != nullptr); in getOrCreateObjectPair() 491 DbgObj = Obj; in getOrCreateObjectPair() [all …]
|