/external/vixl/test/ |
D | test-invalset.cc | 41 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/ |
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() 47 return processSECTDIFFRelocation(SectionID, RelI, Obj, in processRelocationRef() 50 return processScatteredVANILLA(SectionID, RelI, Obj, ObjSectionToID); in processRelocationRef() 54 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 57 getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)); in processRelocationRef() 114 void finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument 120 populateJumpTable(cast<MachOObjectFile>(Obj), Section, SectionID); in finalizeSection() [all …]
|
D | RuntimeDyldMachOX86_64.h | 38 const MachOObjectFile &Obj = in processRelocationRef() local 41 Obj.getRelocation(RelI->getRawDataRefImpl()); in processRelocationRef() 42 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() 45 return processSubtractRelocation(SectionID, RelI, Obj, ObjSectionToID); in processRelocationRef() 47 assert(!Obj.isRelocationScattered(RelInfo) && in processRelocationRef() 50 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 53 getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)); in processRelocationRef() 55 bool IsExtern = Obj.getPlainRelocationExternal(RelInfo); in processRelocationRef() 114 void finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument 150 const MachOObjectFile &Obj = in processSubtractRelocation() local [all …]
|
/external/llvm/include/llvm/ADT/ |
D | IntrusiveRefCntPtr.h | 136 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 = nullptr; in IntrusiveRefCntPtr() 162 : Obj(S.get()) { in IntrusiveRefCntPtr() 173 T& operator*() const { return *Obj; } [all …]
|
/external/llvm/tools/yaml2obj/ |
D | yaml2coff.cpp | 34 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/ |
D | MachODumper.cpp | 31 MachODumper(const MachOObjectFile *Obj, StreamWriter& Writer) in MachODumper() argument 33 , Obj(Obj) { } in MachODumper() 59 void printRelocation(const MachOObjectFile *Obj, const RelocationRef &Reloc); 61 void printSections(const MachOObjectFile *Obj); 63 const MachOObjectFile *Obj; member in __anon747f937b0111::MachODumper 71 std::error_code createMachODumper(const object::ObjectFile *Obj, in createMachODumper() argument 74 const MachOObjectFile *MachOObj = dyn_cast<MachOObjectFile>(Obj); in createMachODumper() 304 static void getSection(const MachOObjectFile *Obj, in getSection() argument 307 if (!Obj->is64Bit()) { in getSection() 308 MachO::section Sect = Obj->getSection(Sec); in getSection() [all …]
|
D | llvm-readobj.cpp | 280 static std::error_code createDumper(const ObjectFile *Obj, StreamWriter &Writer, in createDumper() argument 282 if (!Obj) in createDumper() 285 if (Obj->isCOFF()) in createDumper() 286 return createCOFFDumper(Obj, Writer, Result); in createDumper() 287 if (Obj->isELF()) in createDumper() 288 return createELFDumper(Obj, Writer, Result); in createDumper() 289 if (Obj->isMachO()) in createDumper() 290 return createMachODumper(Obj, Writer, Result); in createDumper() 296 static void dumpObject(const ObjectFile *Obj) { in dumpObject() argument 299 if (std::error_code EC = createDumper(Obj, Writer, Dumper)) in dumpObject() [all …]
|
D | COFFDumper.cpp | 48 COFFDumper(const llvm::object::COFFObjectFile *Obj, StreamWriter& Writer) in COFFDumper() argument 50 , Obj(Obj) { in COFFDumper() 94 const llvm::object::COFFObjectFile *Obj; member in __anon584cd8b10111::COFFDumper 106 std::error_code createCOFFDumper(const object::ObjectFile *Obj, in createCOFFDumper() argument 109 const COFFObjectFile *COFFObj = dyn_cast<COFFObjectFile>(Obj); in createCOFFDumper() 335 static std::error_code getSymbolAuxData(const COFFObjectFile *Obj, in getSymbolAuxData() argument 338 ArrayRef<uint8_t> AuxData = Obj->getSymbolAuxData(Symbol); in getSymbolAuxData() 339 AuxData = AuxData.slice(AuxSymbolIdx * Obj->getSymbolTableEntrySize()); in getSymbolAuxData() 349 for (const SectionRef &S : Obj->sections()) { in cacheRelocations() 350 const coff_section *Section = Obj->getCOFFSection(S); in cacheRelocations() [all …]
|
D | ELFDumper.cpp | 45 ELFDumper(const ELFFile<ELFT> *Obj, StreamWriter &Writer); 116 ErrorOr<const Elf_Dyn *> Ret = Obj->dynamic_table_begin(DynamicProgHeader); in dynamic_table_begin() 121 ErrorOr<const Elf_Dyn *> Ret = Obj->dynamic_table_end(DynamicProgHeader); in dynamic_table_end() 131 const ELFO *Obj; member in __anon13a0f62a0111::ELFDumper 172 ErrorOr<Elf_Dyn_Range> Ret = Obj->dynamic_table(DynamicProgHeader); in dynamic_table() 197 static std::error_code createELFDumper(const ELFFile<ELFT> *Obj, in createELFDumper() argument 200 Result.reset(new ELFDumper<ELFT>(Obj, Writer)); in createELFDumper() 204 std::error_code createELFDumper(const object::ObjectFile *Obj, in createELFDumper() argument 208 if (const ELF32LEObjectFile *ELFObj = dyn_cast<ELF32LEObjectFile>(Obj)) in createELFDumper() 212 if (const ELF32BEObjectFile *ELFObj = dyn_cast<ELF32BEObjectFile>(Obj)) in createELFDumper() [all …]
|
/external/llvm/lib/IR/ |
D | User.cpp | 132 User *Obj = reinterpret_cast<User*>(End); in allocateFixedOperandUser() local 133 Obj->NumUserOperands = Us; in allocateFixedOperandUser() 134 Obj->HasHungOffUses = false; in allocateFixedOperandUser() 135 Obj->HasDescriptor = DescBytes != 0; in allocateFixedOperandUser() 143 return Obj; in allocateFixedOperandUser() 158 User *Obj = reinterpret_cast<User *>(HungOffOperandList + 1); in operator new() local 159 Obj->NumUserOperands = 0; in operator new() 160 Obj->HasHungOffUses = true; in operator new() 161 Obj->HasDescriptor = false; in operator new() 163 return Obj; in operator new() [all …]
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldMachO.cpp | 37 getObjectForDebug(const ObjectFile &Obj) const override { in getObjectForDebug() 57 const MachOObjectFile &Obj = in processScatteredVANILLA() local 60 Obj.getRelocation(RelI->getRawDataRefImpl()); in processScatteredVANILLA() 63 uint32_t RelocType = Obj.getAnyRelocationType(RE); in processScatteredVANILLA() 64 bool IsPCRel = Obj.getAnyRelocationPCRel(RE); in processScatteredVANILLA() 65 unsigned Size = Obj.getAnyRelocationLength(RE); in processScatteredVANILLA() 71 unsigned SymbolBaseAddr = Obj.getScatteredRelocationValue(RE); in processScatteredVANILLA() 72 section_iterator TargetSI = getSectionByAddress(Obj, SymbolBaseAddr); in processScatteredVANILLA() 73 assert(TargetSI != Obj.section_end() && "Can't find section for symbol"); in processScatteredVANILLA() 78 findOrEmitSection(Obj, TargetSection, IsCode, ObjSectionToID); in processScatteredVANILLA() [all …]
|
D | RuntimeDyld.cpp | 138 RuntimeDyldImpl::loadObjectImpl(const object::ObjectFile &Obj) { in loadObjectImpl() argument 142 Arch = (Triple::ArchType)Obj.getArch(); in loadObjectImpl() 143 IsTargetLittleEndian = Obj.isLittleEndian(); in loadObjectImpl() 144 setMipsABI(Obj); in loadObjectImpl() 150 computeTotalAllocSize(Obj, CodeSize, DataSizeRO, DataSizeRW); in loadObjectImpl() 162 for (symbol_iterator I = Obj.symbol_begin(), E = Obj.symbol_end(); I != E; in loadObjectImpl() 204 if (SI == Obj.section_end()) in loadObjectImpl() 210 unsigned SectionID = findOrEmitSection(Obj, *SI, IsCode, LocalSections); in loadObjectImpl() 223 emitCommonSymbols(Obj, CommonSymbols); in loadObjectImpl() 227 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in loadObjectImpl() [all …]
|
D | RuntimeDyldMachO.h | 68 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() 77 static_cast<MachO::RelocationInfoType>(Obj.getAnyRelocationType(RelInfo)); in getRelocationEntry() 111 static section_iterator getSectionByAddress(const MachOObjectFile &Obj, 116 void populateIndirectSymbolPointersSection(const MachOObjectFile &Obj, 133 bool isCompatibleFile(const object::ObjectFile &Obj) const override; 157 void finalizeLoad(const ObjectFile &Obj,
|
/external/llvm/tools/obj2yaml/ |
D | elf2yaml.cpp | 28 const object::ELFFile<ELFT> &Obj; member in __anonb15354a30111::ELFDumper 57 : Obj(O) {} in ELFDumper() 64 Y->Header.Class = ELFYAML::ELF_ELFCLASS(Obj.getHeader()->getFileClass()); in dump() 65 Y->Header.Data = ELFYAML::ELF_ELFDATA(Obj.getHeader()->getDataEncoding()); in dump() 66 Y->Header.OSABI = Obj.getHeader()->e_ident[ELF::EI_OSABI]; in dump() 67 Y->Header.Type = Obj.getHeader()->e_type; in dump() 68 Y->Header.Machine = Obj.getHeader()->e_machine; in dump() 69 Y->Header.Flags = Obj.getHeader()->e_flags; in dump() 70 Y->Header.Entry = Obj.getHeader()->e_entry; in dump() 75 for (const Elf_Shdr &Sec : Obj.sections()) { in dump() [all …]
|
D | coff2yaml.cpp | 21 const object::COFFObjectFile &Obj; member in __anone486fe8a0111::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 …]
|
D | obj2yaml.cpp | 22 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() 38 if (ObjectFile *Obj = dyn_cast<ObjectFile>(&Binary)) in dumpInput() local 39 return dumpObject(*Obj); in dumpInput()
|
/external/llvm/tools/llvm-objdump/ |
D | llvm-objdump.cpp | 261 static const Target *getTarget(const ObjectFile *Obj = nullptr) { in getTarget() argument 265 if (Obj) { in getTarget() 266 TheTriple.setArch(Triple::ArchType(Obj->getArch())); in getTarget() 269 if (Obj->isMachO()) in getTarget() 272 if (Obj->isCOFF()) { in getTarget() 273 const auto COFFObj = dyn_cast<COFFObjectFile>(Obj); in getTarget() 378 static std::error_code getRelocationValueString(const ELFObjectFile<ELFT> *Obj, in getRelocationValueString() argument 387 const ELFFile<ELFT> &EF = *Obj->getELFFile(); in getRelocationValueString() 417 const Elf_Rela *ERela = Obj->getRela(Rel); in getRelocationValueString() 423 const Elf_Sym *symb = Obj->getSymbol(SI->getRawDataRefImpl()); in getRelocationValueString() [all …]
|
D | COFFDump.cpp | 161 resolveSectionAndAddress(const COFFObjectFile *Obj, const SymbolRef &Sym, in resolveSectionAndAddress() argument 171 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() 239 printSEHTable(const COFFObjectFile *Obj, uint32_t TableVA, int Count) { in printSEHTable() argument 244 error(Obj->getPE32Header(PE32Header)); in printSEHTable() 247 error(Obj->getVaPtr(TableVA, IntPtr)); in printSEHTable() 255 static void printLoadConfiguration(const COFFObjectFile *Obj) { in printLoadConfiguration() argument 258 error(Obj->getPE32Header(PE32Header)); in printLoadConfiguration() [all …]
|
/external/llvm/tools/llvm-nm/ |
D | llvm-nm.cpp | 210 static char isSymbolList64Bit(SymbolicFile &Obj) { in isSymbolList64Bit() argument 211 if (isa<IRObjectFile>(Obj)) { in isSymbolList64Bit() 212 IRObjectFile *IRobj = dyn_cast<IRObjectFile>(&Obj); in isSymbolList64Bit() 219 if (isa<COFFObjectFile>(Obj)) in isSymbolList64Bit() 221 if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj)) in isSymbolList64Bit() 223 return cast<ELFObjectFileBase>(Obj).getBytesInAddress() == 8; in isSymbolList64Bit() 230 static char getSymbolNMTypeChar(IRObjectFile &Obj, basic_symbol_iterator I); 237 static void darwinPrintSymbol(SymbolicFile &Obj, SymbolListT::iterator I, in darwinPrintSymbol() argument 249 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); in darwinPrintSymbol() 250 if (Obj.isIR()) { in darwinPrintSymbol() [all …]
|
/external/llvm/include/llvm/Object/ |
D | MachOUniversal.h | 70 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/tools/dsymutil/ |
D | MachOUtils.cpp | 124 static void iterateOnSegments(const object::MachOObjectFile &Obj, in iterateOnSegments() argument 126 for (const auto &LCI : Obj.load_commands()) { in iterateOnSegments() 129 Segment = adaptFrom32bits(Obj.getSegmentLoadCommand(LCI)); in iterateOnSegments() 131 Segment = Obj.getSegment64LoadCommand(LCI); in iterateOnSegments() 176 static unsigned transferSymbols(const object::MachOObjectFile &Obj, in transferSymbols() argument 180 StringRef Strings = Obj.getStringTableData(); in transferSymbols() 181 bool IsLittleEndian = Obj.isLittleEndian(); in transferSymbols() 184 if (Obj.is64Bit()) { in transferSymbols() 185 for (const object::SymbolRef &Symbol : Obj.symbols()) { in transferSymbols() 187 if (transferSymbol(Obj.getSymbol64TableEntry(DRI), IsLittleEndian, in transferSymbols() [all …]
|
/external/llvm/lib/ExecutionEngine/OProfileJIT/ |
D | OProfileJITEventListener.cpp | 51 void NotifyObjectEmitted(const ObjectFile &Obj, 54 void NotifyFreeingObject(const ObjectFile &Obj) override; 79 const ObjectFile &Obj, in NotifyObjectEmitted() argument 85 OwningBinary<ObjectFile> DebugObjOwner = L.getObjectForDebug(Obj); in NotifyObjectEmitted() 114 DebugObjects[Obj.getData().data()] = std::move(DebugObjOwner); in NotifyObjectEmitted() 117 void OProfileJITEventListener::NotifyFreeingObject(const ObjectFile &Obj) { in NotifyFreeingObject() argument 122 if (DebugObjects.find(Obj.getData().data()) == DebugObjects.end()) in NotifyFreeingObject() 125 const ObjectFile &DebugObj = *DebugObjects[Obj.getData().data()].getBinary(); in NotifyFreeingObject() 147 DebugObjects.erase(Obj.getData().data()); in NotifyFreeingObject()
|
/external/llvm/lib/Object/ |
D | ELFObjectFile.cpp | 24 ObjectFile::createELFObjectFile(MemoryBufferRef Obj) { in createELFObjectFile() argument 26 getElfArchType(Obj.getBuffer()); in createELFObjectFile() 28 1ULL << countTrailingZeros(uintptr_t(Obj.getBufferStart())); in createELFObjectFile() 37 R.reset(new ELFObjectFile<ELFType<support::little, false>>(Obj, EC)); in createELFObjectFile() 39 R.reset(new ELFObjectFile<ELFType<support::big, false>>(Obj, EC)); in createELFObjectFile() 44 R.reset(new ELFObjectFile<ELFType<support::little, true>>(Obj, EC)); in createELFObjectFile() 46 R.reset(new ELFObjectFile<ELFType<support::big, true>>(Obj, EC)); in createELFObjectFile()
|
/external/llvm/include/llvm/Support/ |
D | TrailingObjects.h | 171 getTrailingObjectsImpl(const BaseTy *Obj, 175 Obj, TrailingObjectsBase::OverloadToken<PrevTy>()) + 177 Obj, TrailingObjectsBase::OverloadToken<PrevTy>())); 181 getTrailingObjectsImpl(BaseTy *Obj, 185 Obj, TrailingObjectsBase::OverloadToken<PrevTy>()) + 187 Obj, TrailingObjectsBase::OverloadToken<PrevTy>())); 254 getTrailingObjectsImpl(const BaseTy *Obj, 256 return Obj; 260 getTrailingObjectsImpl(BaseTy *Obj, 262 return Obj; [all …]
|
/external/guice/extensions/grapher/test/com/google/inject/grapher/ |
D | ShortNameFactoryTest.java | 49 private static class Obj { class in ShortNameFactoryTest 52 Obj() {} in Obj() method in ShortNameFactoryTest.Obj 78 Member field = Obj.class.getDeclaredField("field"); in testGetMemberName_field() 83 Member method = Obj.class.getDeclaredMethod("method", String.class); in testGetMemberName_method() 88 Member constructor = Obj.class.getDeclaredConstructor(); in testGetMemberName_constructor() 99 Obj.class.getDeclaredField("field").getDeclaredAnnotations()[0]); in testGetAnnotationName_annotationInstance() 109 Key<?> key = Key.get(Obj.class); in testGetClassName_key() 125 Member method = Obj.class.getDeclaredMethod("method", String.class); in testGetSourceName_method() 132 (StackTraceElement) StackTraceElements.forMember(Obj.class.getField("field")); in testGetSourceName_stackTraceElement() 139 "ShortNameFactoryTest$Obj", nameFactory.getInstanceName(new Obj())); in testGetInstanceName_defaultToString()
|