Home
last modified time | relevance | path

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

12345

/external/vixl/test/
Dtest-invalset.cc41 class Obj { class
43 Obj() {} in Obj() function in vixl::Obj
44 Obj(KeyType key, ValType val) : key_(key), val_(val) {} in Obj() function in vixl::Obj
48 bool operator==(const Obj& other) const { in operator ==()
51 bool operator<(const Obj& other) const { in operator <()
55 bool operator<=(const Obj& other) const { in operator <=()
59 bool operator>(const Obj& other) const { in operator >()
70 typedef InvalSet<Obj,
78 inline KeyType InvalSet<Obj,
83 kReclaimFactor>::Key(const Obj& obj) { in Key()
[all …]
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldMachOI386.h38 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()
47 return processSECTDIFFRelocation(SectionID, RelI, Obj, in processRelocationRef()
50 return processI386ScatteredVANILLA(SectionID, RelI, Obj, in processRelocationRef()
55 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
58 getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)); in processRelocationRef()
71 makeValueAddendPCRel(Value, Obj, RelI, 1 << RE.Size); in processRelocationRef()
115 void finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument
[all …]
DRuntimeDyldMachOAArch64.h250 const MachOObjectFile &Obj = in processRelocationRef() local
253 Obj.getRelocation(RelI->getRawDataRefImpl()); in processRelocationRef()
255 assert(!Obj.isRelocationScattered(RelInfo) && ""); in processRelocationRef()
262 if (Obj.getAnyRelocationType(RelInfo) == MachO::ARM64_RELOC_ADDEND) { in processRelocationRef()
263 assert(!Obj.getPlainRelocationExternal(RelInfo)); in processRelocationRef()
264 assert(!Obj.getAnyRelocationPCRel(RelInfo)); in processRelocationRef()
265 assert(Obj.getAnyRelocationLength(RelInfo) == 2); in processRelocationRef()
266 int64_t RawAddend = Obj.getPlainRelocationSymbolNum(RelInfo); in processRelocationRef()
270 RelInfo = Obj.getRelocation(RelI->getRawDataRefImpl()); in processRelocationRef()
273 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
[all …]
DRuntimeDyldMachOX86_64.h38 const MachOObjectFile &Obj = in processRelocationRef() local
41 Obj.getRelocation(RelI->getRawDataRefImpl()); in processRelocationRef()
43 assert(!Obj.isRelocationScattered(RelInfo) && in processRelocationRef()
46 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
49 getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)); in processRelocationRef()
51 bool IsExtern = Obj.getPlainRelocationExternal(RelInfo); in processRelocationRef()
53 makeValueAddendPCRel(Value, Obj, RelI, 1 << RE.Size); in processRelocationRef()
102 void finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument
/external/llvm/tools/macho-dump/
Dmacho-dump.cpp70 static int DumpSectionData(const MachOObjectFile &Obj, unsigned Index, in DumpSectionData() argument
99 for (relocation_iterator I = Obj.section_rel_begin(Index), in DumpSectionData()
100 E = Obj.section_rel_end(Index); in DumpSectionData()
102 MachO::any_relocation_info RE = Obj.getRelocation(I->getRawDataRefImpl()); in DumpSectionData()
112 StringRef Data = Obj.getData().substr(Offset, Size); in DumpSectionData()
125 static int DumpSegmentCommand(const MachOObjectFile &Obj, in DumpSegmentCommand() argument
127 MachO::segment_command SLC = Obj.getSegmentLoadCommand(LCI); in DumpSegmentCommand()
136 MachO::section Sect = Obj.getSection(LCI, i); in DumpSegmentCommand()
137 DumpSectionData(Obj, i, StringRef(Sect.sectname, 16), in DumpSegmentCommand()
148 static int DumpSegment64Command(const MachOObjectFile &Obj, in DumpSegment64Command() argument
[all …]
/external/llvm/include/llvm/ADT/
DIntrusiveRefCntPtr.h136 T* Obj; variable
141 explicit IntrusiveRefCntPtr() : Obj(nullptr) {} in IntrusiveRefCntPtr()
143 IntrusiveRefCntPtr(T* obj) : Obj(obj) { in IntrusiveRefCntPtr()
147 IntrusiveRefCntPtr(const IntrusiveRefCntPtr& S) : Obj(S.Obj) { in IntrusiveRefCntPtr()
151 IntrusiveRefCntPtr(IntrusiveRefCntPtr&& S) : Obj(S.Obj) { in IntrusiveRefCntPtr()
152 S.Obj = nullptr; in IntrusiveRefCntPtr()
156 IntrusiveRefCntPtr(IntrusiveRefCntPtr<X>&& S) : Obj(S.get()) { in IntrusiveRefCntPtr()
157 S.Obj = 0; in IntrusiveRefCntPtr()
162 : Obj(S.get()) { in IntrusiveRefCntPtr()
173 T& operator*() const { return *Obj; }
[all …]
/external/llvm/tools/yaml2obj/
Dyaml2coff.cpp34 COFFParser(COFFYAML::Object &Obj) in COFFParser()
35 : Obj(Obj), SectionTableStart(0), SectionTableSize(0) { in COFFParser()
42 return static_cast<int32_t>(Obj.Sections.size()) > in useBigObj()
46 bool isPE() const { return Obj.OptionalHeader.hasValue(); } in isPE()
48 return Obj.Header.Machine == COFF::IMAGE_FILE_MACHINE_AMD64; in is64Bit()
52 return Obj.OptionalHeader->Header.FileAlignment; in getFileAlignment()
64 for (std::vector<COFFYAML::Section>::iterator i = Obj.Sections.begin(), in parseSections()
65 e = Obj.Sections.end(); i != e; ++i) { in parseSections()
92 for (std::vector<COFFYAML::Symbol>::iterator i = Obj.Symbols.begin(), in parseSymbols()
93 e = Obj.Symbols.end(); i != e; ++i) { in parseSymbols()
[all …]
/external/llvm/tools/llvm-readobj/
Dllvm-readobj.cpp223 static std::error_code createDumper(const ObjectFile *Obj, StreamWriter &Writer, in createDumper() argument
225 if (!Obj) in createDumper()
228 if (Obj->isCOFF()) in createDumper()
229 return createCOFFDumper(Obj, Writer, Result); in createDumper()
230 if (Obj->isELF()) in createDumper()
231 return createELFDumper(Obj, Writer, Result); in createDumper()
232 if (Obj->isMachO()) in createDumper()
233 return createMachODumper(Obj, Writer, Result); in createDumper()
238 static StringRef getLoadName(const ObjectFile *Obj) { in getLoadName() argument
239 if (auto *ELF = dyn_cast<ELF32LEObjectFile>(Obj)) in getLoadName()
[all …]
DMachODumper.cpp30 MachODumper(const MachOObjectFile *Obj, StreamWriter& Writer) in MachODumper() argument
32 , Obj(Obj) { } in MachODumper()
49 void printRelocation(const MachOObjectFile *Obj, const RelocationRef &Reloc);
51 void printSections(const MachOObjectFile *Obj);
53 const MachOObjectFile *Obj; member in __anon9a5cac4f0111::MachODumper
61 std::error_code createMachODumper(const object::ObjectFile *Obj, in createMachODumper() argument
64 const MachOObjectFile *MachOObj = dyn_cast<MachOObjectFile>(Obj); in createMachODumper()
292 static void getSection(const MachOObjectFile *Obj, in getSection() argument
295 if (!Obj->is64Bit()) { in getSection()
296 MachO::section Sect = Obj->getSection(Sec); in getSection()
[all …]
DELFDumper.cpp43 ELFDumper(const ELFFile<ELFT> *Obj, StreamWriter &Writer) in ELFDumper() argument
44 : ObjDumper(Writer), Obj(Obj) {} in ELFDumper()
70 const ELFO *Obj; member in __anonbff9c9fe0111::ELFDumper
86 static std::error_code createELFDumper(const ELFFile<ELFT> *Obj, in createELFDumper() argument
89 Result.reset(new ELFDumper<ELFT>(Obj, Writer)); in createELFDumper()
93 std::error_code createELFDumper(const object::ObjectFile *Obj, in createELFDumper() argument
97 if (const ELF32LEObjectFile *ELFObj = dyn_cast<ELF32LEObjectFile>(Obj)) in createELFDumper()
101 if (const ELF32BEObjectFile *ELFObj = dyn_cast<ELF32BEObjectFile>(Obj)) in createELFDumper()
105 if (const ELF64LEObjectFile *ELFObj = dyn_cast<ELF64LEObjectFile>(Obj)) in createELFDumper()
109 if (const ELF64BEObjectFile *ELFObj = dyn_cast<ELF64BEObjectFile>(Obj)) in createELFDumper()
[all …]
DCOFFDumper.cpp47 COFFDumper(const llvm::object::COFFObjectFile *Obj, StreamWriter& Writer) in COFFDumper() argument
49 , Obj(Obj) { in COFFDumper()
93 const llvm::object::COFFObjectFile *Obj; member in __anon8fc027050111::COFFDumper
104 std::error_code createCOFFDumper(const object::ObjectFile *Obj, in createCOFFDumper() argument
107 const COFFObjectFile *COFFObj = dyn_cast<COFFObjectFile>(Obj); in createCOFFDumper()
331 static std::error_code getSymbolAuxData(const COFFObjectFile *Obj, in getSymbolAuxData() argument
334 ArrayRef<uint8_t> AuxData = Obj->getSymbolAuxData(Symbol); in getSymbolAuxData()
335 AuxData = AuxData.slice(AuxSymbolIdx * Obj->getSymbolTableEntrySize()); in getSymbolAuxData()
341 for (const SectionRef &S : Obj->sections()) { in cacheRelocations()
342 const coff_section *Section = Obj->getCOFFSection(S); in cacheRelocations()
[all …]
/external/llvm/tools/obj2yaml/
Delf2yaml.cpp29 const object::ELFFile<ELFT> &Obj; member in __anon0c4f73f70111::ELFDumper
54 : Obj(O) {} in ELFDumper()
61 Y->Header.Class = ELFYAML::ELF_ELFCLASS(Obj.getHeader()->getFileClass()); in dump()
62 Y->Header.Data = ELFYAML::ELF_ELFDATA(Obj.getHeader()->getDataEncoding()); in dump()
63 Y->Header.OSABI = Obj.getHeader()->e_ident[ELF::EI_OSABI]; in dump()
64 Y->Header.Type = Obj.getHeader()->e_type; in dump()
65 Y->Header.Machine = Obj.getHeader()->e_machine; in dump()
66 Y->Header.Flags = Obj.getHeader()->e_flags; in dump()
67 Y->Header.Entry = Obj.getHeader()->e_entry; in dump()
70 for (const Elf_Shdr &Sec : Obj.sections()) { in dump()
[all …]
Dcoff2yaml.cpp21 const object::COFFObjectFile &Obj; member in __anon9f07085e0111::COFFDumper
30 COFFDumper(const object::COFFObjectFile &Obj);
36 COFFDumper::COFFDumper(const object::COFFObjectFile &Obj) : Obj(Obj) { in COFFDumper() argument
38 Obj.getPE32Header(PE32Header); in COFFDumper()
43 Obj.getPE32PlusHeader(PE32PlusHeader); in COFFDumper()
49 dumpSections(Obj.getNumberOfSections()); in COFFDumper()
50 dumpSymbols(Obj.getNumberOfSymbols()); in COFFDumper()
89 if (Obj.getDataDirectory(I++, DD)) in dumpOptionalHeader()
98 YAMLObj.Header.Machine = Obj.getMachine(); in dumpHeader()
99 YAMLObj.Header.Characteristics = Obj.getCharacteristics(); in dumpHeader()
[all …]
Dobj2yaml.cpp22 static std::error_code dumpObject(const ObjectFile &Obj) { in dumpObject() argument
23 if (Obj.isCOFF()) in dumpObject()
24 return coff2yaml(outs(), cast<COFFObjectFile>(Obj)); in dumpObject()
25 if (Obj.isELF()) in dumpObject()
26 return elf2yaml(outs(), Obj); in dumpObject()
41 if (ObjectFile *Obj = dyn_cast<ObjectFile>(&Binary)) in dumpInput() local
42 return dumpObject(*Obj); in dumpInput()
/external/llvm/tools/llvm-objdump/
DCOFFDump.cpp161 resolveSectionAndAddress(const COFFObjectFile *Obj, const SymbolRef &Sym, in resolveSectionAndAddress() argument
166 section_iterator iter(Obj->section_begin()); in resolveSectionAndAddress()
169 ResolvedSection = Obj->getCOFFSection(*iter); in resolveSectionAndAddress()
196 getSectionContents(const COFFObjectFile *Obj, in getSectionContents() argument
203 if (std::error_code EC = resolveSectionAndAddress(Obj, Sym, Section, Addr)) in getSectionContents()
205 if (std::error_code EC = Obj->getSectionContents(Section, Contents)) in getSectionContents()
237 printSEHTable(const COFFObjectFile *Obj, uint32_t TableVA, int Count) { in printSEHTable() argument
242 if (error(Obj->getPE32Header(PE32Header))) in printSEHTable()
246 if (error(Obj->getVaPtr(TableVA, IntPtr))) in printSEHTable()
255 static void printLoadConfiguration(const COFFObjectFile *Obj) { in printLoadConfiguration() argument
[all …]
/external/llvm/tools/llvm-nm/
Dllvm-nm.cpp246 static char isSymbolList64Bit(SymbolicFile &Obj) { in isSymbolList64Bit() argument
247 if (isa<IRObjectFile>(Obj)) in isSymbolList64Bit()
249 if (isa<COFFObjectFile>(Obj)) in isSymbolList64Bit()
251 if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj)) in isSymbolList64Bit()
253 if (isa<ELF32LEObjectFile>(Obj)) in isSymbolList64Bit()
255 if (isa<ELF64LEObjectFile>(Obj)) in isSymbolList64Bit()
257 if (isa<ELF32BEObjectFile>(Obj)) in isSymbolList64Bit()
259 if (isa<ELF64BEObjectFile>(Obj)) in isSymbolList64Bit()
533 static void sortAndPrintSymbolList(SymbolicFile &Obj, bool printName, in sortAndPrintSymbolList() argument
558 if (isSymbolList64Bit(Obj)) { in sortAndPrintSymbolList()
[all …]
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldMachO.cpp36 getObjectForDebug(const ObjectFile &Obj) const override { in getObjectForDebug()
56 const MachOObjectFile &Obj = in getRelocationValueRef() local
59 Obj.getRelocation(RI->getRawDataRefImpl()); in getRelocationValueRef()
62 bool IsExternal = Obj.getPlainRelocationExternal(RelInfo); in getRelocationValueRef()
78 SectionRef Sec = Obj.getRelocationSection(RelInfo); in getRelocationValueRef()
80 Value.SectionID = findOrEmitSection(Obj, Sec, IsCode, ObjSectionToID); in getRelocationValueRef()
92 const MachOObjectFile &Obj = in makeValueAddendPCRel() local
95 Obj.getRelocation(RI->getRawDataRefImpl()); in makeValueAddendPCRel()
97 bool IsPCRel = Obj.getAnyRelocationPCRel(RelInfo); in makeValueAddendPCRel()
120 RuntimeDyldMachO::getSectionByAddress(const MachOObjectFile &Obj, in getSectionByAddress() argument
[all …]
DRuntimeDyld.cpp126 const ObjectFile *Obj = Sym.getObject(); in getOffset() local
127 section_iterator SecI(Obj->section_begin()); in getOffset()
131 if (SecI == Obj->section_end()) { in getOffset()
142 RuntimeDyldImpl::loadObjectImpl(const object::ObjectFile &Obj) { in loadObjectImpl() argument
150 Arch = (Triple::ArchType)Obj.getArch(); in loadObjectImpl()
151 IsTargetLittleEndian = Obj.isLittleEndian(); in loadObjectImpl()
157 computeTotalAllocSize(Obj, CodeSize, DataSizeRO, DataSizeRW); in loadObjectImpl()
169 for (symbol_iterator I = Obj.symbol_begin(), E = Obj.symbol_end(); I != E; in loadObjectImpl()
188 section_iterator SI = Obj.section_end(); in loadObjectImpl()
190 if (SI == Obj.section_end()) in loadObjectImpl()
[all …]
DRuntimeDyldMachO.h68 const MachOObjectFile &Obj = in getRelocationEntry() local
71 Obj.getRelocation(RI->getRawDataRefImpl()); in getRelocationEntry()
73 bool IsPCRel = Obj.getAnyRelocationPCRel(RelInfo); in getRelocationEntry()
74 unsigned Size = Obj.getAnyRelocationLength(RelInfo); in getRelocationEntry()
78 static_cast<MachO::RelocationInfoType>(Obj.getAnyRelocationType(RelInfo)); in getRelocationEntry()
107 static section_iterator getSectionByAddress(const MachOObjectFile &Obj,
112 void populateIndirectSymbolPointersSection(const MachOObjectFile &Obj,
129 bool isCompatibleFile(const object::ObjectFile &Obj) const override;
153 void finalizeLoad(const ObjectFile &Obj,
DRuntimeDyldCOFF.cpp34 getObjectForDebug(const ObjectFile &Obj) const override { in getObjectForDebug()
71 const ObjectFile *Obj = Sym.getObject(); in getSymbolOffset() local
72 section_iterator SecI(Obj->section_end()); in getSymbolOffset()
76 if (SecI == Obj->section_end()) in getSymbolOffset()
83 bool RuntimeDyldCOFF::isCompatibleFile(const object::ObjectFile &Obj) const { in isCompatibleFile()
84 return Obj.isCOFF(); in isCompatibleFile()
/external/llvm/lib/Object/
DELFObjectFile.cpp24 ObjectFile::createELFObjectFile(MemoryBufferRef Obj) { in createELFObjectFile() argument
26 getElfArchType(Obj.getBuffer()); in createELFObjectFile()
28 1ULL << countTrailingZeros(uintptr_t(Obj.getBufferStart())); in createELFObjectFile()
35 R.reset(new ELFObjectFile<ELFType<support::little, 4, false>>(Obj, EC)); in createELFObjectFile()
39 R.reset(new ELFObjectFile<ELFType<support::little, 2, false>>(Obj, EC)); in createELFObjectFile()
45 R.reset(new ELFObjectFile<ELFType<support::big, 4, false>>(Obj, EC)); in createELFObjectFile()
49 R.reset(new ELFObjectFile<ELFType<support::big, 2, false>>(Obj, EC)); in createELFObjectFile()
55 R.reset(new ELFObjectFile<ELFType<support::big, 8, true>>(Obj, EC)); in createELFObjectFile()
59 R.reset(new ELFObjectFile<ELFType<support::big, 2, true>>(Obj, EC)); in createELFObjectFile()
65 R.reset(new ELFObjectFile<ELFType<support::little, 8, true>>(Obj, EC)); in createELFObjectFile()
[all …]
/external/llvm/include/llvm/Object/
DMachOUniversal.h70 ObjectForArch Obj; variable
72 object_iterator(const ObjectForArch &Obj) : Obj(Obj) {} in object_iterator() argument
73 const ObjectForArch *operator->() const { return &Obj; }
74 const ObjectForArch &operator*() const { return Obj; }
77 return Obj == Other.Obj;
84 Obj = Obj.getNext();
/external/llvm/lib/ExecutionEngine/OProfileJIT/
DOProfileJITEventListener.cpp50 void NotifyObjectEmitted(const ObjectFile &Obj,
53 void NotifyFreeingObject(const ObjectFile &Obj) override;
78 const ObjectFile &Obj, in NotifyObjectEmitted() argument
84 OwningBinary<ObjectFile> DebugObjOwner = L.getObjectForDebug(Obj); in NotifyObjectEmitted()
111 DebugObjects[Obj.getData().data()] = std::move(DebugObjOwner); in NotifyObjectEmitted()
114 void OProfileJITEventListener::NotifyFreeingObject(const ObjectFile &Obj) { in NotifyFreeingObject() argument
119 if (DebugObjects.find(Obj.getData().data()) == DebugObjects.end()) in NotifyFreeingObject()
122 const ObjectFile &DebugObj = *DebugObjects[Obj.getData().data()].getBinary(); in NotifyFreeingObject()
144 DebugObjects.erase(Obj.getData().data()); in NotifyFreeingObject()
/external/llvm/tools/llvm-cxxdump/
Dllvm-cxxdump.cpp71 static SmallVectorImpl<SectionRef> &getRelocSections(const ObjectFile *Obj, in getRelocSections() argument
76 for (const SectionRef &Section : Obj->sections()) { in getRelocSections()
78 if (Sec2 != Obj->section_end()) in getRelocSections()
86 static bool collectRelocatedSymbols(const ObjectFile *Obj, in collectRelocatedSymbols() argument
92 for (const SectionRef &SR : getRelocSections(Obj, Sec)) { in collectRelocatedSymbols()
97 if (RelocSymI == Obj->symbol_end()) in collectRelocatedSymbols()
115 const ObjectFile *Obj, const SectionRef &Sec, uint64_t SecAddress, in collectRelocationOffsets() argument
120 for (const SectionRef &SR : getRelocSections(Obj, Sec)) { in collectRelocationOffsets()
123 if (RelocSymI == Obj->symbol_end()) in collectRelocationOffsets()
138 static void dumpCXXData(const ObjectFile *Obj) { in dumpCXXData() argument
[all …]
/external/clang/test/Rewriter/
Dobjc-modern-StretAPI-3.mm18 @interface Obj interface
24 @implementation Obj implementation
45 return [Obj foo];
49 return [Obj fee];
53 return [Obj foo:i:d];
57 return [Obj foo];

12345