Searched refs:ContentsOrErr (Results 1 – 9 of 9) sorted by relevance
354 Expected<ArrayRef<uint8_t>> ContentsOrErr = getSectionContents(Sec); in android_relas() local355 if (!ContentsOrErr) in android_relas()356 return ContentsOrErr.takeError(); in android_relas()357 const uint8_t *Cur = ContentsOrErr->begin(); in android_relas()358 const uint8_t *End = ContentsOrErr->end(); in android_relas()359 if (ContentsOrErr->size() < 4 || Cur[0] != 'A' || Cur[1] != 'P' || in android_relas()
373 Expected<ArrayRef<uint8_t>> ContentsOrErr = getSectionContents(Sec); in android_relas() local374 if (!ContentsOrErr) in android_relas()375 return ContentsOrErr.takeError(); in android_relas()376 const uint8_t *Cur = ContentsOrErr->begin(); in android_relas()377 const uint8_t *End = ContentsOrErr->end(); in android_relas()378 if (ContentsOrErr->size() < 4 || Cur[0] != 'A' || Cur[1] != 'P' || in android_relas()
77 Expected<StringRef> ContentsOrErr = Section.getContents(); in isCodeViewDebugSubsection() local78 if (!ContentsOrErr) { in isCodeViewDebugSubsection()79 consumeError(ContentsOrErr.takeError()); in isCodeViewDebugSubsection()83 Reader = BinaryStreamReader(*ContentsOrErr, support::little); in isCodeViewDebugSubsection()
1385 Expected<StringRef> ContentsOrErr = S.getContents(); in dumpTypesFromObjectFile() local1386 if (!ContentsOrErr) in dumpTypesFromObjectFile()1387 return ContentsOrErr.takeError(); in dumpTypesFromObjectFile()1390 BinaryStreamReader Reader(*ContentsOrErr, llvm::support::little); in dumpTypesFromObjectFile()
492 Expected<StringRef> ContentsOrErr = Section.getContents(); in findValidRelocsMachO() local493 if (!ContentsOrErr) { in findValidRelocsMachO()494 consumeError(ContentsOrErr.takeError()); in findValidRelocsMachO()498 DataExtractor Data(*ContentsOrErr, Obj.isLittleEndian(), 0); in findValidRelocsMachO()
256 Expected<StringRef> ContentsOrErr = Section.getContents(); in getGNUDebuglinkContents() local257 if (!ContentsOrErr) { in getGNUDebuglinkContents()258 consumeError(ContentsOrErr.takeError()); in getGNUDebuglinkContents()261 DataExtractor DE(*ContentsOrErr, Obj->isLittleEndian(), 0); in getGNUDebuglinkContents()
258 Expected<StringRef> ContentsOrErr = Section.getContents(); in getGNUDebuglinkContents() local259 if (!ContentsOrErr) { in getGNUDebuglinkContents()260 consumeError(ContentsOrErr.takeError()); in getGNUDebuglinkContents()263 DataExtractor DE(*ContentsOrErr, Obj->isLittleEndian(), 0); in getGNUDebuglinkContents()
544 Expected<ArrayRef<uint8_t>> ContentsOrErr = Obj.getSectionContents(Sec); in getVersionDefinitions() local545 if (!ContentsOrErr) in getVersionDefinitions()547 toString(ContentsOrErr.takeError())); in getVersionDefinitions()549 const uint8_t *Start = ContentsOrErr->data(); in getVersionDefinitions()550 const uint8_t *End = Start + ContentsOrErr->size(); in getVersionDefinitions()632 Expected<ArrayRef<uint8_t>> ContentsOrErr = Obj.getSectionContents(Sec); in getVersionDependencies() local633 if (!ContentsOrErr) in getVersionDependencies()635 toString(ContentsOrErr.takeError())); in getVersionDependencies()637 const uint8_t *Start = ContentsOrErr->data(); in getVersionDependencies()638 const uint8_t *End = Start + ContentsOrErr->size(); in getVersionDependencies()[all …]
448 Expected<StringRef> ContentsOrErr = Section.getContents(); in handleSection() local449 if (!ContentsOrErr) in handleSection()450 return ContentsOrErr.takeError(); in handleSection()451 StringRef Contents = *ContentsOrErr; in handleSection()