Lines Matching refs:obj

122 static bool GetBuildIdFromObjectFile(llvm::object::ObjectFile* obj, BuildId* build_id) {  in GetBuildIdFromObjectFile()  argument
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()
129 LOG(ERROR) << "unknown elf format in file " << obj->getFileName().data(); in GetBuildIdFromObjectFile()
133 LOG(DEBUG) << "no build id present in file " << obj->getFileName().data(); in GetBuildIdFromObjectFile()
140 llvm::object::ObjectFile* obj; member
142 BinaryRet() : obj(nullptr) { in BinaryRet()
175 ret.obj = llvm::dyn_cast<llvm::object::ObjectFile>(ret.binary.getBinary()); in OpenObjectFile()
176 if (ret.obj == nullptr) { in OpenObjectFile()
195 if (ret.obj == nullptr) { in GetBuildIdFromEmbeddedElfFile()
198 return GetBuildIdFromObjectFile(ret.obj, build_id); in GetBuildIdFromEmbeddedElfFile()
268 bool MatchBuildId(llvm::object::ObjectFile* obj, const BuildId& expected_build_id, in MatchBuildId() argument
274 if (!GetBuildIdFromObjectFile(obj, &real_build_id)) { in MatchBuildId()
298 if (ret.obj == nullptr || !MatchBuildId(ret.obj, expected_build_id, filename)) { in ParseSymbolsFromEmbeddedElfFile()
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()
337 if (ret.obj == nullptr || !MatchBuildId(ret.obj, expected_build_id, filename)) { in ReadMinExecutableVirtualAddressFromElfFile()
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()
382 if (ret.obj == nullptr) { 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()