Lines Matching refs:object

134   std::unique_ptr<llvm::object::Binary> binary;
135 llvm::object::ObjectFile* obj = nullptr;
161 auto binary_or_err = llvm::object::createBinary(buffer_or_err.get()->getMemBufferRef()); in OpenObjectFile()
167 wrapper->obj = llvm::dyn_cast<llvm::object::ObjectFile>(wrapper->binary.get()); in OpenObjectFile()
176 auto binary_or_err = llvm::object::createBinary(buffer->getMemBufferRef()); in OpenObjectFileInMemory()
182 wrapper->obj = llvm::dyn_cast<llvm::object::ObjectFile>(wrapper->binary.get()); in OpenObjectFileInMemory()
196 void ReadSymbolTable(llvm::object::symbol_iterator sym_begin, in ReadSymbolTable()
197 llvm::object::symbol_iterator sym_end, in ReadSymbolTable()
200 const llvm::object::section_iterator& section_end) { in ReadSymbolTable()
203 auto symbol_ref = static_cast<const llvm::object::ELFSymbolRef*>(&*sym_begin); in ReadSymbolTable()
208 llvm::Expected<llvm::object::section_iterator> section_it_or_err = symbol_ref->getSection(); in ReadSymbolTable()
235 llvm::object::SymbolRef::Type symbol_type = *symbol_ref->getType(); in ReadSymbolTable()
236 if (symbol_type == llvm::object::SymbolRef::ST_Function) { in ReadSymbolTable()
238 } else if (symbol_type == llvm::object::SymbolRef::ST_Unknown) { in ReadSymbolTable()
258 void AddSymbolForPltSection(const llvm::object::ELFObjectFile<ELFT>* elf, in AddSymbolForPltSection()
267 const llvm::object::ELFSectionRef& section_ref = *it; in AddSymbolForPltSection()
290 void CheckSymbolSections(const llvm::object::ELFObjectFile<ELFT>* elf, in CheckSymbolSections()
295 const llvm::object::ELFSectionRef& section_ref = *it; in CheckSymbolSections()
315 class ElfFileImpl<llvm::object::ELFObjectFile<ELFT>> : public ElfFile {
317 ElfFileImpl(BinaryWrapper&& wrapper, const llvm::object::ELFObjectFile<ELFT>* elf_obj) in ElfFileImpl()
347 const llvm::object::ELFSectionRef& section_ref = *it; in GetBuildId()
377 llvm::object::DataRefImpl()) { in ParseSymbols()
406 for (llvm::object::section_iterator it = elf_obj_->section_begin(); in ReadSection()
456 const llvm::object::ELFObjectFile<ELFT>* elf_obj_;
457 const llvm::object::ELFFile<ELFT>* elf_;
461 if (auto obj = llvm::dyn_cast<llvm::object::ELF32LEObjectFile>(wrapper.obj)) { in CreateElfFileImpl()
463 new ElfFileImpl<llvm::object::ELF32LEObjectFile>(std::move(wrapper), obj)); in CreateElfFileImpl()
465 if (auto obj = llvm::dyn_cast<llvm::object::ELF64LEObjectFile>(wrapper.obj)) { in CreateElfFileImpl()
467 new ElfFileImpl<llvm::object::ELF64LEObjectFile>(std::move(wrapper), obj)); in CreateElfFileImpl()