Home
last modified time | relevance | path

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

1234567

/freebsd-12.1/contrib/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()
60 Obj.Kind = Type::UInt; in read()
63 Obj.Kind = Type::UInt; in read()
150 Obj.Int = I; in read()
[all …]
/freebsd-12.1/contrib/llvm/tools/llvm-objcopy/COFF/
H A DWriter.cpp105 if (Obj.IsPE) { in finalize()
107 sizeof(Obj.DosHeader) + Obj.DosStub.size(); in finalize()
111 Obj.PeHeader.NumberOfRvaAndSize = Obj.DataDirectories.size(); in finalize()
117 Obj.CoffFileHeader.NumberOfSections = Obj.Sections.size(); in finalize()
131 if (Obj.IsPE) { in finalize()
174 if (Obj.IsPE) { in writeHeaders()
175 memcpy(Ptr, &Obj.DosHeader, sizeof(Obj.DosHeader)); in writeHeaders()
177 memcpy(Ptr, Obj.DosStub.data(), Obj.DosStub.size()); in writeHeaders()
209 if (Obj.IsPE) { in writeHeaders()
211 memcpy(Ptr, &Obj.PeHeader, sizeof(Obj.PeHeader)); in writeHeaders()
[all …]
H A DReader.cpp28 Obj.Is64 = COFFObj.is64(); in readExecutableHeaders()
32 Obj.IsPE = true; in readExecutableHeaders()
33 Obj.DosHeader = *DH; in readExecutableHeaders()
42 Obj.PeHeader = *PE32Plus; in readExecutableHeaders()
47 copyPeHeader(Obj.PeHeader, *PE32); in readExecutableHeaders()
49 Obj.BaseOfData = PE32->BaseOfData; in readExecutableHeaders()
68 Section &S = Obj.Sections.back(); in readSections()
109 Obj.addSymbols(Symbols); in readSymbols()
145 Obj->CoffFileHeader = *CFH; in create()
159 if (Error E = readSections(*Obj)) in create()
[all …]
/freebsd-12.1/contrib/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.cpp87 Obj.Headers.emplace(); in dumpFileHeaders()
95 Obj.Headers->NumStreams = in dumpFileHeaders()
115 Obj.StringTable.emplace(); in dumpStringTable()
132 Obj.StreamSizes.emplace(); in dumpStreamMetadata()
143 Obj.StreamMap.emplace(); in dumpStreamDirectory()
162 Obj.PdbStream.emplace(); in dumpPDBStream()
208 Obj.DbiStream.emplace(); in dumpDbiStream()
295 Obj.TpiStream.emplace(); in dumpTpiStream()
322 Obj.IpiStream.emplace(); in dumpIpiStream()
339 Obj.PublicsStream.emplace(); in dumpPublics()
[all …]
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DSafeStackLayout.cpp59 unsigned Start = AdjustStackOffset(LastRegionEnd, Obj.Size, Obj.Alignment); in layoutObject()
60 unsigned End = Start + Obj.Size; in layoutObject()
67 << Obj.Alignment << ", range " << Obj.Range << "\n"); in layoutObject()
69 unsigned Start = AdjustStackOffset(0, Obj.Size, Obj.Alignment); in layoutObject()
70 unsigned End = Start + Obj.Size; in layoutObject()
82 Start = AdjustStackOffset(R.End, Obj.Size, Obj.Alignment); in layoutObject()
83 End = Start + Obj.Size; in layoutObject()
129 R.Range.Join(Obj.Range); in layoutObject()
134 ObjectOffsets[Obj.Handle] = End; in layoutObject()
150 for (auto &Obj : StackObjects) in computeLayout() local
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/ADT/
H A DIntrusiveRefCntPtr.h137 T *Obj = nullptr; variable
144 IntrusiveRefCntPtr(const IntrusiveRefCntPtr &S) : Obj(S.Obj) { retain(); } in IntrusiveRefCntPtr()
145 IntrusiveRefCntPtr(IntrusiveRefCntPtr &&S) : Obj(S.Obj) { S.Obj = nullptr; } in IntrusiveRefCntPtr()
149 S.Obj = nullptr; in IntrusiveRefCntPtr()
166 T *get() const { return Obj; } in get()
170 T *tmp = other.Obj; in swap()
171 other.Obj = Obj; in swap()
172 Obj = tmp; in swap()
177 Obj = nullptr; in reset()
184 if (Obj) in retain()
[all …]
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldMachOI386.h39 const MachOObjectFile &Obj = in processRelocationRef() local
42 Obj.getRelocation(RelI->getRawDataRefImpl()); in processRelocationRef()
43 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef()
45 if (Obj.isRelocationScattered(RelInfo)) { in processRelocationRef()
147 const MachOObjectFile &Obj = in processSECTDIFFRelocation() local
150 Obj.getRelocation(RelI->getRawDataRefImpl()); in processSECTDIFFRelocation()
153 uint32_t RelocType = Obj.getAnyRelocationType(RE); in processSECTDIFFRelocation()
154 bool IsPCRel = Obj.getAnyRelocationPCRel(RE); in processSECTDIFFRelocation()
155 unsigned Size = Obj.getAnyRelocationLength(RE); in processSECTDIFFRelocation()
163 Obj.getRelocation(RelI->getRawDataRefImpl()); in processSECTDIFFRelocation()
[all …]
H A DRuntimeDyldMachOX86_64.h39 const MachOObjectFile &Obj = in processRelocationRef() local
42 Obj.getRelocation(RelI->getRawDataRefImpl()); in processRelocationRef()
43 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef()
48 assert(!Obj.isRelocationScattered(RelInfo) && in processRelocationRef()
59 bool IsExtern = Obj.getPlainRelocationExternal(RelInfo); in processRelocationRef()
162 const MachOObjectFile &Obj = in processSubtractRelocation() local
165 Obj.getRelocation(RelI->getRawDataRefImpl()); in processSubtractRelocation()
167 unsigned Size = Obj.getAnyRelocationLength(RE); in processSubtractRelocation()
178 Obj.getRelocation(RelI->getRawDataRefImpl()); in processSubtractRelocation()
190 SectionRef SecB = Obj.getAnyRelocationSection(RelInfo); in processSubtractRelocation()
[all …]
/freebsd-12.1/contrib/llvm/tools/llvm-objcopy/ELF/
H A DELFObjcopy.cpp67 if (&Sec == Obj.SectionNames) in onlyKeepDWOPred()
186 for (auto &Sec : Obj.sections()) { in dumpSectionToFile()
271 if (Obj.SymbolTable) { in handleArgs()
372 if (&Sec == Obj.SectionNames) in handleArgs()
400 if (&Sec == Obj.SectionNames) in handleArgs()
409 if (&Sec == Obj.SectionNames) in handleArgs()
431 (Obj.SymbolTable && Obj.SymbolTable->getStrTab() == &Sec)) in handleArgs()
455 Obj.SymbolTable && !Obj.SymbolTable->empty()) { in handleArgs()
457 if (&Sec == Obj.SymbolTable || &Sec == Obj.SymbolTable->getStrTab()) in handleArgs()
471 Config, Obj, RemovePred, in handleArgs()
[all …]
H A DObject.cpp785 Obj->Flags = 0x0; in initFileHeader()
789 Obj->Entry = 0x0; in initFileHeader()
791 Obj->Version = 1; in initFileHeader()
1131 Obj.SectionIndexTable->initialize(Obj.sections()); in readSectionHeaders()
1137 Obj.SymbolTable->initialize(Obj.sections()); in readSectionHeaders()
1180 Obj.SectionNames = in build()
1207 return Obj; in create()
1211 return Obj; in create()
1215 return Obj; in create()
1219 return Obj; in create()
[all …]
/freebsd-12.1/contrib/llvm/tools/llvm-readobj/
H A DMachODumper.cpp32 : ObjDumper(Writer), Obj(Obj) {} in MachODumper()
64 const MachOObjectFile *Obj; member in __anon281d7db20111::MachODumper
309 if (!Obj->is64Bit()) { in getSection()
338 if (!Obj->is64Bit()) { in getSegment()
370 if (!Obj->is64Bit()) { in getSymbol()
389 if (!Obj->is64Bit()) { in printFileHeaders()
467 if (Obj->is64Bit()) in printSectionHeaders()
525 return printRelocation(Obj, Reloc); in printRelocation()
622 if (SecI != Obj->section_end()) in printSymbol()
651 for (auto Sec : Obj->sections()) { in printStackMap()
[all …]
H A DELFDumper.cpp187 if (DRI.Addr < Obj->base() || in TYPEDEF_ELF_TYPES()
188 (const uint8_t *)DRI.Addr + DRI.Size > Obj->base() + Obj->getBufSize()) in TYPEDEF_ELF_TYPES()
2040 const ELFO * const Obj; member in __anon4f80e6a10411::MipsGOTParser
2088 : IsStatic(DynTable.empty()), Obj(Obj), GotSec(nullptr), LocalNum(0), in MipsGOTParser()
2704 Obj->getRelocationTypeName(R.getType(Obj->isMips64EL()), RelocName); in printRelocation()
3387 Obj->getRelocationTypeName(R.getType(Obj->isMips64EL()), RelocName); in printDynamicRelocation()
4201 printRelocations(&Sec, Obj); in printRelocations()
4251 Obj->getRelocationTypeName(Rel.getType(Obj->isMips64EL()), RelocName); in printRelocation()
4334 printRelocations(&Sec, Obj); in printSectionHeaders()
4346 printSymbol(Obj, &Sym, unwrapOrError(Obj->symbols(Symtab)).begin(), in printSectionHeaders()
[all …]
H A DWasmDumper.cpp46 WasmDumper(const WasmObjectFile *Obj, ScopedPrinter &Writer) in WasmDumper() argument
47 : ObjDumper(Writer), Obj(Obj) {} in WasmDumper()
62 const WasmObjectFile *Obj; member in __anon31c50aa20111::WasmDumper
66 W.printHex("Version", Obj->getHeader().Version); in printFileHeaders()
78 if (SI != Obj->symbol_end()) in printRelocation()
120 for (const SectionRef &Section : Obj->sections()) { in printRelocations()
146 for (const SymbolRef &Symbol : Obj->symbols()) in printSymbols()
152 for (const SectionRef &Section : Obj->sections()) { in printSectionHeaders()
153 const WasmSection &WasmSec = Obj->getWasmSection(Section); in printSectionHeaders()
172 for (const WasmSegment &Segment : Obj->dataSegments()) { in printSectionHeaders()
[all …]
H A Dllvm-readobj.cpp415 if (!Obj) in createDumper()
418 if (Obj->isCOFF()) in createDumper()
420 if (Obj->isELF()) in createDumper()
422 if (Obj->isMachO()) in createDumper()
424 if (Obj->isWasm()) in createDumper()
481 if (Obj->isELF()) { in dumpObject()
487 if (isMipsArch(Obj->getArch())) { in dumpObject()
508 if (Obj->isCOFF()) { in dumpObject()
530 if (Obj->isMachO()) { in dumpObject()
560 dumpObject(Obj, Writer); in dumpArchive()
[all …]
H A DCOFFDumper.cpp79 : ObjDumper(Writer), Obj(Obj), Writer(Writer), Types(100) {} in COFFDumper()
196 Sec = Obj->getCOFFSection(SR); in COFFObjectDumpDelegate()
259 auto SymI = Obj->symbol_end(); in resolveSymbol()
268 if (SymI == Obj->symbol_end()) in resolveSymbol()
786 if (Obj->is64()) in printCOFFLoadConfig()
1369 if (Symbol != Obj->symbol_end()) { in printRelocation()
1373 SymbolIndex = Obj->getSymbolIndex(Obj->getCOFFSymbol(*Symbol)); in printRelocation()
1545 switch (Obj->getMachine()) { in printUnwindInfo()
1562 Decoder.dumpProcedureData(*Obj); in printUnwindInfo()
1839 for (auto Sec : Obj->sections()) { in printStackMap()
[all …]
/freebsd-12.1/contrib/llvm/tools/llvm-objdump/
H A Dllvm-objdump.cpp433 if (Obj) in getTarget()
439 if (Obj) { in getTarget()
451 if (Obj) in getTarget()
930 SourcePrinter(const ObjectFile *Obj, StringRef DefaultArch) : Obj(Obj) { in SourcePrinter() argument
1008 Obj->getArch() == Triple::arm || Obj->getArch() == Triple::armeb || in isArmElf()
1213 assert(Obj->isELF()); in getElfSymbolType()
1257 assert(Obj->isELF()); in addDynamicElfSymbols()
1415 if (Obj->isELF()) in disassembleObject()
1505 if (Obj->isELF() && Obj->getArch() == Triple::amdgcn) { in disassembleObject()
1599 if (Obj->isELF() && Obj->getArch() == Triple::amdgcn) { in disassembleObject()
[all …]
H A DCOFFDump.cpp170 ResolvedSection = Obj->getCOFFSection(**Iter); in resolveSectionAndAddress()
193 getSectionContents(const COFFObjectFile *Obj, in getSectionContents() argument
241 error(Obj->getPE32Header(PE32Header)); in printSEHTable()
244 error(Obj->getVaPtr(TableVA, IntPtr)); in printSEHTable()
275 error(Obj->getPE32Header(PE32Header)); in printTLSDirectory()
278 error(Obj->getPE32PlusHeader(PE32PlusHeader)); in printTLSDirectory()
305 error(Obj->getPE32Header(PE32Header)); in printLoadConfiguration()
526 if (Obj->getRvaPtr(RF.UnwindInfoOffset, addr)) in printRuntimeFunction()
566 Obj, Rels, SectionOffset + in printRuntimeFunctionRels()
592 if (!getPDataSection(Obj, Rels, RFStart, NumRFs)) in printCOFFUnwindInfo()
[all …]
H A DELFDump.cpp160 void llvm::printELFFileHeader(const object::ObjectFile *Obj) { in printELFFileHeader() argument
161 if (const auto *ELFObj = dyn_cast<ELF32LEObjectFile>(Obj)) in printELFFileHeader()
163 else if (const auto *ELFObj = dyn_cast<ELF32BEObjectFile>(Obj)) in printELFFileHeader()
165 else if (const auto *ELFObj = dyn_cast<ELF64LEObjectFile>(Obj)) in printELFFileHeader()
167 else if (const auto *ELFObj = dyn_cast<ELF64BEObjectFile>(Obj)) in printELFFileHeader()
171 void llvm::printELFDynamicSection(const object::ObjectFile *Obj) { in printELFDynamicSection() argument
172 if (const auto *ELFObj = dyn_cast<ELF32LEObjectFile>(Obj)) in printELFDynamicSection()
173 printDynamicSection(ELFObj->getELFFile(), Obj->getFileName()); in printELFDynamicSection()
174 else if (const auto *ELFObj = dyn_cast<ELF32BEObjectFile>(Obj)) in printELFDynamicSection()
176 else if (const auto *ELFObj = dyn_cast<ELF64LEObjectFile>(Obj)) in printELFDynamicSection()
[all …]
/freebsd-12.1/contrib/llvm/lib/IR/
H A DUser.cpp129 Obj->NumUserOperands = Us; in allocateFixedOperandUser()
130 Obj->HasHungOffUses = false; in allocateFixedOperandUser()
131 Obj->HasDescriptor = DescBytes != 0; in allocateFixedOperandUser()
139 return Obj; in allocateFixedOperandUser()
155 Obj->NumUserOperands = 0; in operator new()
156 Obj->HasHungOffUses = true; in operator new()
157 Obj->HasDescriptor = false; in operator new()
159 return Obj; in operator new()
169 User *Obj = static_cast<User *>(Usr); in operator delete() local
170 if (Obj->HasHungOffUses) { in operator delete()
[all …]
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldMachO.cpp60 const MachOObjectFile &Obj = in processScatteredVANILLA() local
63 Obj.getRelocation(RelI->getRawDataRefImpl()); in processScatteredVANILLA()
67 bool IsPCRel = Obj.getAnyRelocationPCRel(RE); in processScatteredVANILLA()
68 unsigned Size = Obj.getAnyRelocationLength(RE); in processScatteredVANILLA()
102 const MachOObjectFile &Obj = in getRelocationValueRef() local
105 Obj.getRelocation(RI->getRawDataRefImpl()); in getRelocationValueRef()
166 section_iterator SI = Obj.section_begin(); in getSectionByAddress()
167 section_iterator SE = Obj.section_end(); in getSectionByAddress()
185 assert(!Obj.is64Bit() && in populateIndirectSymbolPointersSection()
224 return Obj.isMachO(); in isCompatibleFile()
[all …]
H A DRuntimeDyld.cpp187 setMipsABI(Obj); in loadObjectImpl()
236 for (symbol_iterator I = Obj.symbol_begin(), E = Obj.symbol_end(); I != E; in loadObjectImpl()
317 if (SI == Obj.section_end()) in loadObjectImpl()
349 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in loadObjectImpl()
481 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in computeTotalAllocSize()
537 for (symbol_iterator I = Obj.symbol_begin(), E = Obj.symbol_end(); I != E; in computeTotalAllocSize()
575 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in computeGOTSize()
597 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in computeSectionStubBufSize()
1247 if (Obj.isELF()) in loadObject()
1251 else if (Obj.isMachO()) in loadObject()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/ExecutionEngine/Orc/
H A DRTDyldObjectLinkingLayer.h107 object::ObjectFile &Obj,
208 std::move(Obj), std::move(Resolver), in ConcreteLinkedObject()
210 buildInitialSymbolTable(PFC->Obj); in ConcreteLinkedObject()
231 PFC->RTDyld->loadObject(*PFC->Obj.getBinary()); in finalize()
279 for (auto &Symbol : Obj.getBinary()->symbols()) { in buildInitialSymbolTable()
302 PreFinalizeContents(OwnedObject Obj, in PreFinalizeContents()
305 : Obj(std::move(Obj)), in PreFinalizeContents()
309 OwnedObject Obj; member
369 auto Obj = in addObject() local
371 if (!Obj) in addObject()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/BinaryFormat/
H A DMsgPackReader.h123 Expected<bool> read(Object &Obj);
136 template <class T> Expected<bool> readRaw(Object &Obj);
137 template <class T> Expected<bool> readInt(Object &Obj);
138 template <class T> Expected<bool> readUInt(Object &Obj);
139 template <class T> Expected<bool> readLength(Object &Obj);
140 template <class T> Expected<bool> readExt(Object &Obj);
141 Expected<bool> createRaw(Object &Obj, uint32_t Size);
142 Expected<bool> createExt(Object &Obj, uint32_t Size);
/freebsd-12.1/contrib/llvm/include/llvm/Object/
H A DMachOUniversal.h119 ObjectForArch Obj; variable
121 object_iterator(const ObjectForArch &Obj) : Obj(Obj) {} in object_iterator() argument
122 const ObjectForArch *operator->() const { return &Obj; }
123 const ObjectForArch &operator*() const { return Obj; }
126 return Obj == Other.Obj;
133 Obj = Obj.getNext();

1234567