Lines Matching refs:object

104 bool GetBuildIdFromELFFile(const llvm::object::ELFFile<ELFT>* elf, BuildId* build_id) {  in GetBuildIdFromELFFile()
122 static bool GetBuildIdFromObjectFile(llvm::object::ObjectFile* obj, BuildId* build_id) { in GetBuildIdFromObjectFile()
124 if (auto elf = llvm::dyn_cast<llvm::object::ELF32LEObjectFile>(obj)) { in GetBuildIdFromObjectFile()
126 } else if (auto elf = llvm::dyn_cast<llvm::object::ELF64LEObjectFile>(obj)) { in GetBuildIdFromObjectFile()
139 llvm::object::OwningBinary<llvm::object::Binary> binary;
140 llvm::object::ObjectFile* obj;
167 auto binary_or_err = llvm::object::createBinary(buffer_or_err.get()->getMemBufferRef()); in OpenObjectFile()
173 ret.binary = llvm::object::OwningBinary<llvm::object::Binary>(std::move(binary_or_err.get()), in OpenObjectFile()
175 ret.obj = llvm::dyn_cast<llvm::object::ObjectFile>(ret.binary.getBinary()); in OpenObjectFile()
209 void ParseSymbolsFromELFFile(const llvm::object::ELFObjectFile<ELFT>* elf_obj, in ParseSymbolsFromELFFile()
222 auto elf_symbol = static_cast<const llvm::object::ELFSymbolRef*>(&*begin); in ParseSymbolsFromELFFile()
268 bool MatchBuildId(llvm::object::ObjectFile* obj, const BuildId& expected_build_id, in MatchBuildId()
301 if (auto elf = llvm::dyn_cast<llvm::object::ELF32LEObjectFile>(ret.obj)) { in ParseSymbolsFromEmbeddedElfFile()
303 } else if (auto elf = llvm::dyn_cast<llvm::object::ELF64LEObjectFile>(ret.obj)) { in ParseSymbolsFromEmbeddedElfFile()
313 bool ReadMinExecutableVirtualAddress(const llvm::object::ELFFile<ELFT>* elf, uint64_t* p_vaddr) { in ReadMinExecutableVirtualAddress()
342 if (auto elf = llvm::dyn_cast<llvm::object::ELF32LEObjectFile>(ret.obj)) { in ReadMinExecutableVirtualAddressFromElfFile()
344 } else if (auto elf = llvm::dyn_cast<llvm::object::ELF64LEObjectFile>(ret.obj)) { in ReadMinExecutableVirtualAddressFromElfFile()
358 bool ReadSectionFromELFFile(const llvm::object::ELFFile<ELFT>* elf, const std::string& section_name, in ReadSectionFromELFFile()
386 if (auto elf = llvm::dyn_cast<llvm::object::ELF32LEObjectFile>(ret.obj)) { in ReadSectionFromElfFile()
388 } else if (auto elf = llvm::dyn_cast<llvm::object::ELF64LEObjectFile>(ret.obj)) { in ReadSectionFromElfFile()