Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/unittests/MC/
H A DDwarfLineTableHeaders.cpp152 Expected<StringRef> ContentsOrErr = Section.getContents(); in verifyDebugLineContents() local
153 ASSERT_TRUE(static_cast<bool>(ContentsOrErr)); in verifyDebugLineContents()
154 StringRef Contents = *ContentsOrErr; in verifyDebugLineContents()
172 Expected<StringRef> ContentsOrErr = Section.getContents(); in verifyDebugLineStrContents() local
173 ASSERT_TRUE(static_cast<bool>(ContentsOrErr)); in verifyDebugLineStrContents()
174 StringRef Contents = *ContentsOrErr; in verifyDebugLineStrContents()
/llvm-project-15.0.7/llvm/lib/Object/
H A DELF.cpp380 Expected<ArrayRef<uint8_t>> ContentsOrErr = getSectionContents(Sec); in android_relas() local
381 if (!ContentsOrErr) in android_relas()
382 return ContentsOrErr.takeError(); in android_relas()
383 ArrayRef<uint8_t> Content = *ContentsOrErr; in android_relas()
636 Expected<ArrayRef<uint8_t>> ContentsOrErr = getSectionContents(Sec); in decodeBBAddrMap() local
637 if (!ContentsOrErr) in decodeBBAddrMap()
638 return ContentsOrErr.takeError(); in decodeBBAddrMap()
639 ArrayRef<uint8_t> Content = *ContentsOrErr; in decodeBBAddrMap()
/llvm-project-15.0.7/bolt/include/bolt/Core/
H A DBinarySection.h113 Expected<StringRef> ContentsOrErr = Section.getContents(); in getContents() local
114 if (!ContentsOrErr) { in getContents()
115 Error E = ContentsOrErr.takeError(); in getContents()
120 return *ContentsOrErr; in getContents()
/llvm-project-15.0.7/llvm/include/llvm/Object/
H A DELF.h901 Expected<ArrayRef<uint8_t>> ContentsOrErr = getSectionContents(Sec); in getVersionDefinitions() local
902 if (!ContentsOrErr) in getVersionDefinitions()
904 toString(ContentsOrErr.takeError())); in getVersionDefinitions()
906 const uint8_t *Start = ContentsOrErr->data(); in getVersionDefinitions()
907 const uint8_t *End = Start + ContentsOrErr->size(); in getVersionDefinitions()
994 Expected<ArrayRef<uint8_t>> ContentsOrErr = getSectionContents(Sec); in getVersionDependencies() local
995 if (!ContentsOrErr) in getVersionDependencies()
997 toString(ContentsOrErr.takeError())); in getVersionDependencies()
999 const uint8_t *Start = ContentsOrErr->data(); in getVersionDependencies()
1000 const uint8_t *End = Start + ContentsOrErr->size(); in getVersionDependencies()
/llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/
H A DInputFile.cpp103 Expected<StringRef> ContentsOrErr = Section.getContents(); in isCodeViewDebugSubsection() local
104 if (!ContentsOrErr) { in isCodeViewDebugSubsection()
105 consumeError(ContentsOrErr.takeError()); in isCodeViewDebugSubsection()
109 Reader = BinaryStreamReader(*ContentsOrErr, support::little); in isCodeViewDebugSubsection()
/llvm-project-15.0.7/llvm/lib/DebugInfo/Symbolize/
H A DSymbolize.cpp279 Expected<StringRef> ContentsOrErr = Section.getContents(); in getGNUDebuglinkContents() local
280 if (!ContentsOrErr) { in getGNUDebuglinkContents()
281 consumeError(ContentsOrErr.takeError()); in getGNUDebuglinkContents()
284 DataExtractor DE(*ContentsOrErr, Obj->isLittleEndian(), 0); in getGNUDebuglinkContents()
/llvm-project-15.0.7/llvm/tools/dsymutil/
H A DMachOUtils.cpp449 if (Expected<StringRef> ContentsOrErr = Section.getContents()) { in generateDsymCompanion() local
450 EHFrameData = *ContentsOrErr; in generateDsymCompanion()
453 consumeError(ContentsOrErr.takeError()); in generateDsymCompanion()
H A DDwarfLinkerForBinary.cpp749 Expected<StringRef> ContentsOrErr = Section.getContents(); in findValidRelocsMachO() local
750 if (!ContentsOrErr) { in findValidRelocsMachO()
751 consumeError(ContentsOrErr.takeError()); in findValidRelocsMachO()
755 DataExtractor Data(*ContentsOrErr, Obj.isLittleEndian(), 0); in findValidRelocsMachO()
/llvm-project-15.0.7/llvm/lib/DWP/
H A DDWP.cpp497 Expected<StringRef> ContentsOrErr = Section.getContents(); in handleSection() local
498 if (!ContentsOrErr) in handleSection()
499 return ContentsOrErr.takeError(); in handleSection()
500 StringRef Contents = *ContentsOrErr; in handleSection()
/llvm-project-15.0.7/llvm/tools/llvm-readobj/
H A DELFDumper.cpp3110 Expected<ArrayRef<uint8_t>> ContentsOrErr = in printMipsReginfo() local
3112 if (!ContentsOrErr) { in printMipsReginfo()
3439 if (ContentsOrErr->empty()) in getGroups()
3443 Data = *ContentsOrErr; in getGroups()
4850 if (!ContentsOrErr) in decodeAddrsigSection()
4851 return ContentsOrErr.takeError(); in decodeAddrsigSection()
4854 toULEB128Array(*ContentsOrErr)) in decodeAddrsigSection()
5810 if (!ContentsOrErr) { in printDependentLibsHelper()
7283 if (!ContentsOrErr) { in printELFLinkerOptions()
7289 if (ContentsOrErr->empty()) in printELFLinkerOptions()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-pdbutil/
H A DDumpOutputStyle.cpp1282 Expected<StringRef> ContentsOrErr = S.getContents(); in dumpTypesFromObjectFile() local
1283 if (!ContentsOrErr) in dumpTypesFromObjectFile()
1284 return ContentsOrErr.takeError(); in dumpTypesFromObjectFile()
1287 BinaryStreamReader Reader(*ContentsOrErr, llvm::support::little); in dumpTypesFromObjectFile()