Home
last modified time | relevance | path

Searched refs:Obj (Results 1 – 25 of 272) sorted by relevance

1234567891011

/freebsd-14.2/contrib/llvm-project/llvm/lib/BinaryFormat/
H A DMsgPackReader.cpp37 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()
77 Obj.Float = in read()
87 Obj.Float = in read()
152 Obj.Int = I; in read()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjCopy/COFF/
H A DCOFFWriter.cpp187 if (Obj.IsPE) { in finalize()
189 sizeof(Obj.DosHeader) + Obj.DosStub.size(); in finalize()
193 Obj.PeHeader.NumberOfRvaAndSize = Obj.DataDirectories.size(); in finalize()
199 Obj.CoffFileHeader.NumberOfSections = Obj.getSections().size(); in finalize()
213 if (Obj.IsPE) { in finalize()
256 if (Obj.IsPE) { in writeHeaders()
257 memcpy(Ptr, &Obj.DosHeader, sizeof(Obj.DosHeader)); in writeHeaders()
259 memcpy(Ptr, Obj.DosStub.data(), Obj.DosStub.size()); in writeHeaders()
291 if (Obj.IsPE) { in writeHeaders()
293 memcpy(Ptr, &Obj.PeHeader, sizeof(Obj.PeHeader)); in writeHeaders()
[all …]
H A DCOFFReader.cpp28 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 DCOFFObjcopy.cpp35 static uint64_t getNextRVA(const Object &Obj) { in getNextRVA() argument
36 if (Obj.getSections().empty()) in getNextRVA()
40 Obj.IsPE ? Obj.PeHeader.SectionAlignment : 1); in getNextRVA()
73 Obj.IsPE ? Obj.PeHeader.FileAlignment : 1) in addSection()
82 Obj.addSections(Sec); in addSection()
91 addSection(Obj, ".gnu_debuglink", *Contents, in addGnuDebugLink()
203 if (Error E = Obj.markSymbols()) in handleArgs()
271 addSection(Obj, NewSection.SectionName, in handleArgs()
306 if (!Obj.IsPE) in handleArgs()
329 Object *Obj = ObjOrErr->get(); in executeObjcopyOnBinary() local
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A DPdbYaml.cpp105 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 DYAMLOutputStyle.cpp86 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-14.2/contrib/llvm-project/llvm/lib/ObjCopy/ELF/
H A DELFObjcopy.cpp267 switch (Obj.Machine) { in isRequiredByABISymbol()
289 if (!Obj.SymbolTable) in updateAndRemoveSymbols()
489 (Obj.SymbolTable && Obj.SymbolTable->getStrTab() == &Sec)) in replaceAndRemoveSections()
513 Obj.SymbolTable && !Obj.SymbolTable->empty()) { in replaceAndRemoveSections()
515 if (&Sec == Obj.SymbolTable || &Sec == Obj.SymbolTable->getStrTab()) in replaceAndRemoveSections()
534 Obj, in replaceAndRemoveSections()
626 [&Obj](const SectionBase &Sec) { return onlyKeepDWOPred(Obj, Sec); }); in handleArgs()
776 Obj.Entry = ELFConfig.EntryExpr(Obj.Entry); in handleArgs()
794 if (!Obj) in executeObjcopyOnIHex()
810 if (!Obj) in executeObjcopyOnRawBinary()
[all …]
H A DELFObject.cpp1241 Obj->Flags = 0x0; in initFileHeader()
1245 Obj->Entry = 0x0; in initFileHeader()
1247 Obj->Version = 1; in initFileHeader()
1381 : ElfFile(ElfObj.getELFFile()), Obj(Obj), in ELFBuilder()
1686 return Obj.addSection<RelocationSection>(Obj); in makeSection()
1825 if (Error Err = Obj.SectionIndexTable->initialize(Obj.sections())) in readSections()
1832 if (Error Err = Obj.SymbolTable->initialize(Obj.sections())) in readSections()
2118 : Writer(Obj, Buf), WriteSectionHeaders(WSH && Obj.HadShdrs), in ELFWriter()
2508 if (Obj.isRelocatable() || Obj.SymbolTable == nullptr || in removeUnneededSections()
2514 auto *StrTab = Obj.SymbolTable->getStrTab() == Obj.SectionNames in removeUnneededSections()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DSafeStackLayout.cpp56 unsigned Start = AdjustStackOffset(LastRegionEnd, Obj.Size, Obj.Alignment); in layoutObject()
57 unsigned End = Start + Obj.Size; in layoutObject()
64 << Obj.Alignment.value() << ", range " << Obj.Range 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-14.2/contrib/llvm-project/llvm/lib/ObjCopy/XCOFF/
H A DXCOFFWriter.cpp22 FileSize += Obj.FileHeader.AuxHeaderSize; in finalizeHeaders()
28 for (const Section &Sec : Obj.Sections) { in finalizeSections()
44 FileSize += Obj.StringTable.size(); in finalizeSymbolStringTable()
61 if (Obj.FileHeader.AuxHeaderSize) { in writeHeaders()
62 memcpy(Ptr, &Obj.OptionalFileHeader, Obj.FileHeader.AuxHeaderSize); in writeHeaders()
63 Ptr += Obj.FileHeader.AuxHeaderSize; in writeHeaders()
67 for (const Section &Sec : Obj.Sections) { in writeHeaders()
75 for (const Section &Sec : Obj.Sections) { in writeSections()
96 for (const Symbol &Sym : Obj.Symbols) { in writeSymbolStringTable()
104 memcpy(Ptr, Obj.StringTable.data(), Obj.StringTable.size()); in writeSymbolStringTable()
[all …]
H A DXCOFFReader.cpp17 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()
87 Obj->Sections.reserve(XCOFFObj.getNumberOfSections()); in create()
88 if (Error E = readSections(*Obj)) in create()
92 if (Error E = readSymbols(*Obj)) in create()
95 Obj->StringTable = XCOFFObj.getStringTable(); in create()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DMachODumper.cpp31 : ObjDumper(Writer, Obj->getFileName()), Obj(Obj) {} in MachODumper()
75 const MachOObjectFile *Obj; member in __anonb6fae7830111::MachODumper
344 if (!Obj->is64Bit()) { in getSection()
373 if (!Obj->is64Bit()) { in getSegment()
405 if (!Obj->is64Bit()) { in getSymbol()
424 if (!Obj->is64Bit()) { in printFileHeaders()
498 if (Obj->is64Bit()) in printSectionHeaders()
570 if (SecI != Obj->section_end()) in printRelocation()
622 return Obj->is64Bit() in getSymbolType()
684 if (SecI != Obj->section_end()) in printSymbol()
[all …]
H A DCOFFDumper.cpp83 : 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()
840 if (Obj->is64()) in printCOFFLoadConfig()
1149 Obj->getFileName()); in printCodeViewSymbolSection()
1594 SymbolIndex = Obj->getSymbolIndex(Obj->getCOFFSymbol(*Symbol)); in printRelocation()
1746 switch (Obj->getMachine()) { in printUnwindInfo()
1956 Error E = RSF.load(Obj, S); in printCOFFResources()
2093 if (Obj->isLittleEndian()) in printStackMap()
[all …]
H A DObjDumper.cpp96 W.printString("Format", Obj.getFileFormatName()); 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()
135 Obj.getFileName()); in getSectionRefsByNameOrIndex()
141 Obj.getFileName()); in getSectionRefsByNameOrIndex()
146 static void maybeDecompress(const object::ObjectFile &Obj, in maybeDecompress() argument
150 SectionName, SectionContent, Obj.isLittleEndian(), Obj.is64Bit()); in maybeDecompress()
154 reportWarning(std::move(Err), Obj.getFileName()); in maybeDecompress()
165 getSectionRefsByNameOrIndex(Obj, Sections)) { in printSectionsAsString()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldMachOI386.h37 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()
148 const MachOObjectFile &Obj = in processSECTDIFFRelocation() local
151 Obj.getRelocation(RelI->getRawDataRefImpl()); in processSECTDIFFRelocation()
154 uint32_t RelocType = Obj.getAnyRelocationType(RE); in processSECTDIFFRelocation()
155 bool IsPCRel = Obj.getAnyRelocationPCRel(RE); in processSECTDIFFRelocation()
156 unsigned Size = Obj.getAnyRelocationLength(RE); in processSECTDIFFRelocation()
164 Obj.getRelocation(RelI->getRawDataRefImpl()); in processSECTDIFFRelocation()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A DIntrusiveRefCntPtr.h174 T *Obj = nullptr; variable
181 IntrusiveRefCntPtr(const IntrusiveRefCntPtr &S) : Obj(S.Obj) { retain(); } in IntrusiveRefCntPtr()
182 IntrusiveRefCntPtr(IntrusiveRefCntPtr &&S) : Obj(S.Obj) { S.Obj = nullptr; } in IntrusiveRefCntPtr()
187 S.Obj = nullptr; in IntrusiveRefCntPtr()
209 T *tmp = other.Obj; in swap()
210 other.Obj = Obj; in swap()
211 Obj = tmp; in swap()
216 Obj = nullptr; in reset()
222 return Obj ? IntrusiveRefCntPtrInfo<T>::useCount(Obj) : 0; in useCount()
227 if (Obj) in retain()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DObjectFileInterface.cpp46 for (auto &Sym : Obj.symbols()) { in getMachOObjectFileSymbolInfo()
81 for (auto &Sec : Obj.sections()) { in getMachOObjectFileSymbolInfo()
82 auto SecType = Obj.getSectionType(Sec); in getMachOObjectFileSymbolInfo()
103 for (auto &Sym : Obj.symbols()) { in getELFObjectFileSymbolInfo()
140 for (auto &Sec : Obj.sections()) { in getELFObjectFileSymbolInfo()
157 Obj.getNumberOfSections() + 1); in getCOFFObjectFileSymbolInfo()
158 for (auto &Sym : Obj.symbols()) { in getCOFFObjectFileSymbolInfo()
221 for (auto &Sec : Obj.sections()) { in getCOFFObjectFileSymbolInfo()
239 for (auto &Sym : Obj.symbols()) { in getGenericObjectFileSymbolInfo()
278 if (!Obj) in getObjectFileInterface()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DUser.cpp139 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()
166 Obj->NumUserOperands = 0; in operator new()
167 Obj->HasHungOffUses = true; in operator new()
168 Obj->HasDescriptor = false; in operator new()
170 return Obj; in operator new()
183 if (Obj->HasHungOffUses) { in operator delete()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DCOFFEmitter.cpp38 : Obj(Obj), SectionTableStart(0), SectionTableSize(0), ErrHandler(EH) { in COFFParser()
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()
208 for (COFFYAML::Section &S : CP.Obj.Sections) { in layoutCOFF()
295 CP.Obj.Header.NumberOfSections = CP.Obj.Sections.size(); in layoutCOFF()
300 CP.Obj.Header.PointerToSymbolTable = 0; in layoutCOFF()
426 << binary_le(CP.Obj.Header.Machine) in writeCOFF()
434 OS << binary_le(CP.Obj.Header.Machine) in writeCOFF()
[all …]
H A DXCOFFEmitter.cpp36 : Obj(Obj), W(OS, llvm::endianness::big), ErrHandler(EH), in XCOFFWriter()
68 XCOFFYAML::Object &Obj; member in __anon25a8e72f0111::XCOFFWriter
162 if (Obj.StrTbl.Strings || Obj.StrTbl.Length) { in initStringTable()
167 if (Obj.StrTbl.ContentSize && *Obj.StrTbl.ContentSize < RawSize) { in initStringTable()
175 if (Obj.StrTbl.ContentSize && *Obj.StrTbl.ContentSize <= 3) { in initStringTable()
223 if (Obj.StrTbl.ContentSize && *Obj.StrTbl.ContentSize < StrTblSize) { in initStringTable()
326 if (Obj.AuxHeader) in assignAddressesAndIndices()
346 if (Obj.AuxHeader) in assignAddressesAndIndices()
727 if (!Obj.StrTbl.Length && !Obj.StrTbl.ContentSize) { in writeStringTable()
742 support::endian::write32be(Ptr, Obj.StrTbl.Length ? *Obj.StrTbl.Length in writeStringTable()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldMachO.cpp59 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-14.2/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DCOFFDump.cpp43 : Dumper(O), Obj(O) { in COFFDumper()
44 Is64 = !Obj.getPE32Header(); in COFFDumper()
59 const llvm::object::COFFObjectFile &Obj; member in __anona028bc1c0111::COFFDumper
457 if (!Obj->getPE32Header()) in printLoadConfiguration()
728 Obj, Rels, in printRuntimeFunctionRels()
763 printRuntimeFunction(Obj, RF); in printCOFFUnwindInfo()
775 COFFDumper CD(Obj); in printPrivateHeaders()
811 printTLSDirectory(&Obj); in printPrivateHeaders()
812 printLoadConfiguration(&Obj); in printPrivateHeaders()
813 printImportTables(&Obj); in printPrivateHeaders()
[all …]
H A DELFDump.cpp35 const ELFObjectFile<ELFT> &Obj; member in __anon124f5b150111::ELFDumper
47 return std::make_unique<ELFDumper<ELFT>>(Obj); in createDumper()
52 if (const auto *O = dyn_cast<ELF32LEObjectFile>(&Obj)) in createELFDumper()
54 if (const auto *O = dyn_cast<ELF32BEObjectFile>(&Obj)) in createELFDumper()
58 return createDumper(cast<ELF64BEObjectFile>(Obj)); in createELFDumper()
93 const ELFFile<ELFT> &EF = Obj->getELFFile(); in getRelocationValueString()
126 Obj->getSymbol(SI->getRawDataRefImpl()); in getRelocationValueString()
170 auto *ELF64BE = cast<ELF64BEObjectFile>(Obj); in getELFRelocationValueString()
177 auto PhdrRangeOrErr = Obj.program_headers(); in getSectionLMA()
252 Obj.getFileName()); in printProgramHeaders()
[all …]
H A Dllvm-objdump.cpp521 return isArmElf(Obj) || isAArch64Elf(Obj) || isCSKYElf(Obj) ; in hasMappingSymbols()
958 assert(Obj.isELF()); in getElfSymbolType()
1146 if (Obj->isELF()) in shouldAdjustVA()
1487 assert(Obj.isELF()); in createFakeELFSections()
1627 if (Obj.isWasm()) in disassembleObject()
1630 if (Obj.isELF() && Obj.sections().empty()) in disassembleObject()
1757 if (Obj.isELF() && Obj.getArch() == Triple::amdgcn) { in disassembleObject()
2402 Obj = O; in disassembleObject()
2575 if (!Obj.isELF()) in shouldDisplayLMA()
2594 if (Obj.isELF() && Obj.sections().empty()) in printSectionHeaders()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/TextAPI/BinaryReader/
H A DDylibReader.cpp64 for (const auto &cmd : Obj->load_commands()) { in constructTriples()
144 auto H = Obj->getHeader(); in readMachOHeader()
166 for (const auto &LCI : Obj->load_commands()) { in readMachOHeader()
192 auto UUIDLC = Obj->getUuidCommand(LCI); in readMachOHeader()
204 auto RPLC = Obj->getRpathCommand(LCI); in readMachOHeader()
219 for (auto &Sect : Obj->sections()) { in readMachOHeader()
232 if (Obj->isLittleEndian()) { in readMachOHeader()
275 for (auto &Sym : Obj->exports(Err)) { in readSymbols()
281 for (const auto &Sym : Obj->symbols()) { in readSymbols()
400 auto &Obj = *ObjOrErr.get(); in readFile() local
[all …]

1234567891011