Searched refs:Obj (Results 1 - 25 of 201) sorted by relevance

123456789

/freebsd-13-stable/contrib/llvm-project/llvm/lib/BinaryFormat/
H A DMsgPackReader.cpp28 Expected<bool> Reader::read(Object &Obj) { argument
36 Obj.Kind = Type::Nil;
39 Obj.Kind = Type::Boolean;
40 Obj.Bool = true;
43 Obj.Kind = Type::Boolean;
44 Obj.Bool = false;
47 Obj.Kind = Type::Int;
48 return readInt<int8_t>(Obj);
50 Obj.Kind = Type::Int;
51 return readInt<int16_t>(Obj);
181 readRaw(Object &Obj) argument
191 readInt(Object &Obj) argument
201 readUInt(Object &Obj) argument
211 readLength(Object &Obj) argument
221 readExt(Object &Obj) argument
231 createRaw(Object &Obj, uint32_t Size) argument
241 createExt(Object &Obj, uint32_t Size) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-objcopy/wasm/
H A DReader.cpp19 auto Obj = std::make_unique<Object>(); local
20 Obj->Header = WasmObj.getHeader();
22 Obj->Sections.reserve(WasmObj.getNumSections());
25 Obj->Sections.push_back(
28 return std::move(Obj);
H A DWriter.h23 Writer(Object &Obj, Buffer &Buf) : Obj(Obj), Buf(Buf) {} argument
28 Object &Obj;
H A DWriter.cpp46 SectionHeaders.reserve(Obj.Sections.size());
48 for (const Section &S : Obj.Sections) {
63 Ptr = std::copy(Obj.Header.Magic.begin(), Obj.Header.Magic.end(), Ptr);
64 support::endian::write32le(Ptr, Obj.Header.Version);
65 Ptr += sizeof(Obj.Header.Version);
70 ArrayRef<uint8_t> Contents = Obj.Sections[I].Contents;
/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A DPdbYaml.cpp104 void MappingTraits<PdbObject>::mapping(IO &IO, PdbObject &Obj) { argument
105 IO.mapOptional("MSF", Obj.Headers);
106 IO.mapOptional("StreamSizes", Obj.StreamSizes);
107 IO.mapOptional("StreamMap", Obj.StreamMap);
108 IO.mapOptional("StringTable", Obj.StringTable);
109 IO.mapOptional("PdbStream", Obj.PdbStream);
110 IO.mapOptional("DbiStream", Obj.DbiStream);
111 IO.mapOptional("TpiStream", Obj.TpiStream);
112 IO.mapOptional("IpiStream", Obj.IpiStream);
113 IO.mapOptional("PublicsStream", Obj
116 mapping(IO &IO, MSFHeaders &Obj) argument
142 mapping(IO &IO, PdbInfoStream &Obj) argument
150 mapping(IO &IO, PdbDbiStream &Obj) argument
161 mapping(IO &IO, pdb::yaml::PdbTpiStream &Obj) argument
167 mapping( IO &IO, pdb::yaml::PdbPublicsStream &Obj) argument
172 mapping(IO &IO, NamedStreamMapping &Obj) argument
178 mapping(IO &IO, PdbModiStream &Obj) argument
183 mapping(IO &IO, PdbDbiModuleInfo &Obj) argument
[all...]
H A DYAMLOutputStyle.cpp41 : File(File), Out(outs()), Obj(File.getAllocator()) {
86 Obj.Headers.emplace();
87 Obj.Headers->SuperBlock.NumBlocks = File.getBlockCount();
88 Obj.Headers->SuperBlock.BlockMapAddr = File.getBlockMapIndex();
89 Obj.Headers->SuperBlock.BlockSize = File.getBlockSize();
91 Obj.Headers->DirectoryBlocks.assign(Blocks.begin(), Blocks.end());
92 Obj.Headers->NumDirectoryBlocks = File.getNumDirectoryBlocks();
93 Obj.Headers->SuperBlock.NumDirectoryBytes = File.getNumDirectoryBytes();
94 Obj.Headers->NumStreams =
96 Obj
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-objcopy/COFF/
H A DReader.h28 Error readExecutableHeaders(Object &Obj) const;
29 Error readSections(Object &Obj) const;
30 Error readSymbols(Object &Obj, bool IsBigObj) const;
31 Error setSymbolTargets(Object &Obj) const;
H A DWriter.cpp27 for (Section &Sec : Obj.getMutableSections()) {
29 const Symbol *Sym = Obj.findSymbol(R.Target);
41 for (Symbol &Sym : Obj.getMutableSymbols()) {
47 const Section *Sec = Obj.findSection(Sym.TargetSectionId);
65 Sec = Obj.findSection(Sym.AssociativeComdatTargetSectionId);
83 const Symbol *Target = Obj.findSymbol(*Sym.WeakTargetSymbolId);
95 for (auto &S : Obj.getMutableSections()) {
119 for (const auto &S : Obj.getSections())
123 for (const auto &S : Obj.getSymbols())
129 for (auto &S : Obj
[all...]
H A DReader.cpp26 Error COFFReader::readExecutableHeaders(Object &Obj) const {
28 Obj.Is64 = COFFObj.is64();
32 Obj.IsPE = true;
33 Obj.DosHeader = *DH;
35 Obj.DosStub = ArrayRef<uint8_t>(reinterpret_cast<const uint8_t *>(&DH[1]),
39 Obj.PeHeader = *COFFObj.getPE32PlusHeader();
42 copyPeHeader(Obj.PeHeader, *PE32);
44 Obj.BaseOfData = PE32->BaseOfData;
47 for (size_t I = 0; I < Obj.PeHeader.NumberOfRvaAndSize; I++) {
51 Obj
84 readSymbols(Object &Obj, bool IsBigObj) const argument
195 auto Obj = std::make_unique<Object>(); local
[all...]
H A DWriter.h25 Object &Obj; member in class:llvm::objcopy::coff::COFFWriter
54 COFFWriter(Object &Obj, Buffer &Buf) argument
55 : Obj(Obj), Buf(Buf), StrTabBuilder(StringTableBuilder::WinCOFF) {}
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DSafeStackLayout.cpp53 void StackLayout::layoutObject(StackObject &Obj) { argument
58 unsigned Start = AdjustStackOffset(LastRegionEnd, Obj.Size, Obj.Alignment);
59 unsigned End = Start + Obj.Size;
60 Regions.emplace_back(Start, End, Obj.Range);
61 ObjectOffsets[Obj.Handle] = End;
65 LLVM_DEBUG(dbgs() << "Layout: size " << Obj.Size << ", align "
66 << Obj.Alignment << ", range " << Obj.Range << "\n");
67 assert(Obj
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DMsgPackReader.h19 /// msgpack::Object Obj;
21 /// while (MPReader.read(Obj)) {
22 /// switch (Obj.Kind) {
24 // // Use Obj.Int
112 /// The \p Obj is updated with the kind of the object read, and the
120 /// \param [out] Obj filled with next object on success.
123 /// input (and so \p Obj was not updated), otherwise an error.
124 Expected<bool> read(Object &Obj);
137 template <class T> Expected<bool> readRaw(Object &Obj);
138 template <class T> Expected<bool> readInt(Object &Obj);
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/
H A DUser.cpp130 User *Obj = reinterpret_cast<User*>(End);
131 Obj->NumUserOperands = Us;
132 Obj->HasHungOffUses = false;
133 Obj->HasDescriptor = DescBytes != 0;
135 new (Start) Use(Obj);
142 return Obj;
157 User *Obj = reinterpret_cast<User *>(HungOffOperandList + 1);
158 Obj->NumUserOperands = 0;
159 Obj->HasHungOffUses = true;
160 Obj
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/DIA/
H A DDIAUtils.h15 template <typename Obj>
16 std::string invokeBstrMethod(Obj &Object,
17 HRESULT (__stdcall Obj::*Func)(BSTR *)) {
/freebsd-13-stable/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFAddressRange.cpp18 const DWARFObject *Obj) const {
25 if (Obj)
26 DWARFFormValue::dumpAddressSection(*Obj, OS, DumpOpts, SectionIndex);
/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-dwarfdump/
H A Dllvm-dwarfdump.h32 void calculateSectionSizes(const object::ObjectFile &Obj, SectionSizes &Sizes,
35 bool collectStatsForObjectFile(object::ObjectFile &Obj, DWARFContext &DICtx,
37 bool collectObjectSectionSizes(object::ObjectFile &Obj, DWARFContext &DICtx,
/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DELFDump.h27 Error getELFRelocationValueString(const object::ELFObjectFileBase *Obj,
33 void printELFDynamicSection(const object::ObjectFile *Obj);
34 void printELFSymbolVersionInfo(const object::ObjectFile *Obj);
H A DXCOFFDump.h20 getXCOFFSymbolCsectSMC(const object::XCOFFObjectFile *Obj,
23 bool isLabel(const object::XCOFFObjectFile *Obj, const object::SymbolRef &Sym);
28 Error getXCOFFRelocationValueString(const object::XCOFFObjectFile *Obj,
H A DELFDump.cpp56 static Error getRelocationValueString(const ELFObjectFile<ELFT> *Obj, argument
59 const ELFFile<ELFT> &EF = *Obj->getELFFile();
74 const typename ELFT::Rela *ERela = Obj->getRela(Rel);
88 const typename ELFT::Sym *Sym = Obj->getSymbol(SI->getRawDataRefImpl());
94 Obj->getSection((*SymSI)->getRawDataRefImpl());
122 Error objdump::getELFRelocationValueString(const ELFObjectFileBase *Obj,
125 if (auto *ELF32LE = dyn_cast<ELF32LEObjectFile>(Obj))
127 if (auto *ELF64LE = dyn_cast<ELF64LEObjectFile>(Obj))
129 if (auto *ELF32BE = dyn_cast<ELF32BEObjectFile>(Obj))
131 auto *ELF64BE = cast<ELF64BEObjectFile>(Obj);
202 printProgramHeaders(const ELFFile<ELFT> *Obj, StringRef FileName) argument
353 printELFFileHeader(const object::ObjectFile *Obj) argument
364 printELFDynamicSection(const object::ObjectFile *Obj) argument
375 printELFSymbolVersionInfo(const object::ObjectFile *Obj) argument
[all...]
H A DXCOFFDump.cpp22 Error objdump::getXCOFFRelocationValueString(const XCOFFObjectFile *Obj, argument
26 if (SymI == Obj->symbol_end())
40 SymName = getXCOFFSymbolDescription(createSymbolInfo(Obj, *SymI), SymName);
47 objdump::getXCOFFSymbolCsectSMC(const XCOFFObjectFile *Obj, argument
49 XCOFFSymbolRef SymRef(Sym.getRawDataRefImpl(), Obj);
57 bool objdump::isLabel(const XCOFFObjectFile *Obj, const SymbolRef &Sym) { argument
59 XCOFFSymbolRef SymRef(Sym.getRawDataRefImpl(), Obj);
H A DWasmDump.cpp22 void objdump::printWasmFileHeader(const object::ObjectFile *Obj) { argument
23 const auto *File = dyn_cast<const WasmObjectFile>(Obj);
31 Error objdump::getWasmRelocationValueString(const WasmObjectFile *Obj, argument
34 const wasm::WasmRelocation &Rel = Obj->getWasmRelocation(RelRef);
38 if (SI == Obj->symbol_end()) {
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/ADT/
H A DIntrusiveRefCntPtr.h136 T *Obj = nullptr; member in class:llvm::IntrusiveRefCntPtr
142 IntrusiveRefCntPtr(T *obj) : Obj(obj) { retain(); }
143 IntrusiveRefCntPtr(const IntrusiveRefCntPtr &S) : Obj(S.Obj) { retain(); }
144 IntrusiveRefCntPtr(IntrusiveRefCntPtr &&S) : Obj(S.Obj) { S.Obj = nullptr; }
147 IntrusiveRefCntPtr(IntrusiveRefCntPtr<X> &&S) : Obj(S.get()) {
148 S.Obj = nullptr;
152 IntrusiveRefCntPtr(const IntrusiveRefCntPtr<X> &S) : Obj(
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldMachOI386.h38 const MachOObjectFile &Obj = variable
41 Obj.getRelocation(RelI->getRawDataRefImpl());
42 uint32_t RelType = Obj.getAnyRelocationType(RelInfo);
44 if (Obj.isRelocationScattered(RelInfo)) {
47 return processSECTDIFFRelocation(SectionID, RelI, Obj,
50 return processScatteredVANILLA(SectionID, RelI, Obj, ObjSectionToID);
67 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI));
70 if (auto ValueOrErr = getRelocationValueRef(Obj, RelI, RE, ObjSectionToID))
79 // bool IsExtern = Obj.getPlainRelocationExternal(RelInfo);
128 Error finalizeSection(const ObjectFile &Obj, unsigne argument
149 const MachOObjectFile &Obj = local
212 populateJumpTable(const MachOObjectFile &Obj, const SectionRef &JTSection, unsigned JTSectionID) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Object/
H A DTapiUniversal.h70 ObjectForArch Obj; member in class:llvm::object::TapiUniversal::object_iterator
73 object_iterator(const ObjectForArch &Obj) : Obj(Obj) {} argument
74 const ObjectForArch *operator->() const { return &Obj; }
75 const ObjectForArch &operator*() const { return Obj; }
78 return Obj == Other.Obj;
85 Obj = Obj
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DMachODumper.cpp30 MachODumper(const MachOObjectFile *Obj, ScopedPrinter &Writer) argument
31 : ObjDumper(Writer), Obj(Obj) {}
59 void printRelocation(const MachOObjectFile *Obj, const RelocationRef &Reloc);
61 void printSectionHeaders(const MachOObjectFile *Obj);
63 const MachOObjectFile *Obj; member in class:__anon4872::MachODumper
71 std::error_code createMachODumper(const object::ObjectFile *Obj, argument
74 const MachOObjectFile *MachOObj = dyn_cast<MachOObjectFile>(Obj);
331 static void getSection(const MachOObjectFile *Obj, argument
334 if (!Obj
360 getSegment(const MachOObjectFile *Obj, const MachOObjectFile::LoadCommandInfo &L, MachOSegment &Segment) argument
392 getSymbol(const MachOObjectFile *Obj, DataRefImpl DRI, MachOSymbol &Symbol) argument
458 printSectionHeaders(const MachOObjectFile *Obj) argument
542 printRelocation(const MachOObjectFile *Obj, const RelocationRef &Reloc) argument
[all...]

Completed in 115 milliseconds

123456789