Home
last modified time | relevance | path

Searched refs:ContentsOrErr (Results 1 – 10 of 10) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DELF.cpp444 Expected<ArrayRef<uint8_t>> ContentsOrErr = getSectionContents(Sec); in crels() local
445 if (!ContentsOrErr) in crels()
446 return ContentsOrErr.takeError(); in crels()
447 return decodeCrel(*ContentsOrErr); in crels()
455 Expected<ArrayRef<uint8_t>> ContentsOrErr = getSectionContents(Sec); in android_relas() local
456 if (!ContentsOrErr) in android_relas()
457 return ContentsOrErr.takeError(); in android_relas()
458 ArrayRef<uint8_t> Content = *ContentsOrErr; in android_relas()
781 Expected<ArrayRef<uint8_t>> ContentsOrErr = EF.getSectionContents(Sec); in decodeBBAddrMapImpl() local
782 if (!ContentsOrErr) in decodeBBAddrMapImpl()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CGData/
H A DCodeGenDataReader.cpp81 Expected<StringRef> ContentsOrErr = Section.getContents(); in mergeFromObjectFile() local
82 if (!ContentsOrErr) in mergeFromObjectFile()
83 return ContentsOrErr.takeError(); in mergeFromObjectFile()
84 processSectionContents(*NameOrErr, *ContentsOrErr); in mergeFromObjectFile()
/freebsd/contrib/llvm-project/llvm/lib/ToolDrivers/llvm-dlltool/
H A DDlltoolDriver.cpp238 Expected<StringRef> ContentsOrErr = S.getContents(); in identifyImportName() local
239 if (!ContentsOrErr) { in identifyImportName()
240 printError(ContentsOrErr.takeError(), ObjName); in identifyImportName()
243 StringRef Contents = *ContentsOrErr; in identifyImportName()
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DELF.h1044 Expected<ArrayRef<uint8_t>> ContentsOrErr = getSectionContents(Sec); in getVersionDefinitions() local
1045 if (!ContentsOrErr) in getVersionDefinitions()
1047 toString(ContentsOrErr.takeError())); in getVersionDefinitions()
1049 const uint8_t *Start = ContentsOrErr->data(); in getVersionDefinitions()
1050 const uint8_t *End = Start + ContentsOrErr->size(); in getVersionDefinitions()
1137 Expected<ArrayRef<uint8_t>> ContentsOrErr = getSectionContents(Sec); in getVersionDependencies() local
1138 if (!ContentsOrErr) in getVersionDependencies()
1140 toString(ContentsOrErr.takeError())); in getVersionDependencies()
1142 const uint8_t *Start = ContentsOrErr->data(); in getVersionDependencies()
1143 const uint8_t *End = Start + ContentsOrErr->size(); in getVersionDependencies()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DInputFile.cpp104 Expected<StringRef> ContentsOrErr = Section.getContents(); in isCodeViewDebugSubsection() local
105 if (!ContentsOrErr) { in isCodeViewDebugSubsection()
106 consumeError(ContentsOrErr.takeError()); in isCodeViewDebugSubsection()
110 Reader = BinaryStreamReader(*ContentsOrErr, llvm::endianness::little); in isCodeViewDebugSubsection()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/
H A DSymbolize.cpp332 Expected<StringRef> ContentsOrErr = Section.getContents(); in getGNUDebuglinkContents() local
333 if (!ContentsOrErr) { in getGNUDebuglinkContents()
334 consumeError(ContentsOrErr.takeError()); in getGNUDebuglinkContents()
337 DataExtractor DE(*ContentsOrErr, Obj->isLittleEndian(), 0); in getGNUDebuglinkContents()
/freebsd/contrib/llvm-project/llvm/lib/DWP/
H A DDWP.cpp577 Expected<StringRef> ContentsOrErr = Section.getContents(); in handleSection() local
578 if (!ContentsOrErr) in handleSection()
579 return ContentsOrErr.takeError(); in handleSection()
580 StringRef Contents = *ContentsOrErr; in handleSection()
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DELFDumper.cpp3393 Expected<ArrayRef<uint8_t>> ContentsOrErr = in printMipsReginfo() local
3395 if (!ContentsOrErr) { in printMipsReginfo()
3398 describe(*RegInfoSec) + "): " + toString(ContentsOrErr.takeError())); in printMipsReginfo()
3402 if (ContentsOrErr->size() < sizeof(Elf_Mips_RegInfo<ELFT>)) { in printMipsReginfo()
3404 Twine::utohexstr(ContentsOrErr->size()) + ")"); in printMipsReginfo()
3410 ContentsOrErr->data())); in printMipsReginfo()
3805 if (Expected<ArrayRef<Elf_Word>> ContentsOrErr = in getGroups() local
3807 if (ContentsOrErr->empty()) in getGroups()
3811 Data = *ContentsOrErr; in getGroups()
3814 ": " + toString(ContentsOrErr.takeError())); in getGroups()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/Coverage/
H A DCoverageMappingReader.cpp1128 auto ContentsOrErr = Section.getContents(); in lookupAllocatableSection() local
1129 if (!ContentsOrErr) in lookupAllocatableSection()
1130 return ContentsOrErr.takeError(); in lookupAllocatableSection()
1131 auto Content = *ContentsOrErr; in lookupAllocatableSection()
/freebsd/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A DDumpOutputStyle.cpp1283 Expected<StringRef> ContentsOrErr = S.getContents(); in dumpTypesFromObjectFile() local
1284 if (!ContentsOrErr) in dumpTypesFromObjectFile()
1285 return ContentsOrErr.takeError(); in dumpTypesFromObjectFile()
1288 BinaryStreamReader Reader(*ContentsOrErr, llvm::endianness::little); in dumpTypesFromObjectFile()