Home
last modified time | relevance | path

Searched refs:MaybeCode (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Bitstream/Reader/
H A DBitstreamReader.cpp99 Expected<uint32_t> MaybeCode = ReadVBR(6); in skipRecord() local
100 if (!MaybeCode) in skipRecord()
101 return MaybeCode.takeError(); in skipRecord()
102 unsigned Code = MaybeCode.get(); in skipRecord()
130 Expected<uint64_t> MaybeCode = readAbbreviatedField(*this, CodeOp); in skipRecord() local
131 if (!MaybeCode) in skipRecord()
132 return MaybeCode.takeError(); in skipRecord()
133 Code = MaybeCode.get(); in skipRecord()
218 Expected<uint32_t> MaybeCode = ReadVBR(6); in readRecord() local
219 if (!MaybeCode) in readRecord()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DMetadataLoader.cpp849 if (Expected<unsigned> MaybeCode = in lazyLoadModuleMetadataBlock() local
851 assert(MaybeCode.get() == bitc::METADATA_INDEX && in lazyLoadModuleMetadataBlock()
855 return MaybeCode.takeError(); in lazyLoadModuleMetadataBlock()
876 if (Expected<unsigned> MaybeCode = in lazyLoadModuleMetadataBlock() local
878 Code = MaybeCode.get(); in lazyLoadModuleMetadataBlock()
881 return MaybeCode.takeError(); in lazyLoadModuleMetadataBlock()
885 if (Expected<unsigned> MaybeCode = IndexCursor.ReadCode()) in lazyLoadModuleMetadataBlock() local
886 Code = MaybeCode.get(); in lazyLoadModuleMetadataBlock()
888 return MaybeCode.takeError(); in lazyLoadModuleMetadataBlock()
1007 Expected<unsigned> MaybeCode = TempCursor.skipRecord(Entry.ID); in loadGlobalDeclAttachments() local
[all …]
H A DBitcodeAnalyzer.cpp585 Expected<unsigned> MaybeCode = BlockInfoCursor.ReadCode(); in analyze() local
586 if (!MaybeCode) in analyze()
587 return MaybeCode.takeError(); in analyze()
588 if (MaybeCode.get() != bitc::ENTER_SUBBLOCK) in analyze()
613 Expected<unsigned> MaybeCode = Stream.ReadCode(); in analyze() local
614 if (!MaybeCode) in analyze()
615 return MaybeCode.takeError(); in analyze()
616 if (MaybeCode.get() != bitc::ENTER_SUBBLOCK) in analyze()
/freebsd/contrib/llvm-project/llvm/include/llvm/Bitstream/
H A DBitstreamReader.h422 Expected<unsigned> MaybeCode = ReadCode();
423 if (!MaybeCode) variable
424 return MaybeCode.takeError();
425 unsigned Code = MaybeCode.get();
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DGlobalModuleIndex.cpp612 Expected<unsigned> MaybeCode = InStream.readRecord(Entry.ID, Record, &Blob); in loadModuleFile() local
613 if (!MaybeCode) in loadModuleFile()
614 return MaybeCode.takeError(); in loadModuleFile()
615 unsigned Code = MaybeCode.get(); in loadModuleFile()
H A DASTReaderDecl.cpp3838 Expected<unsigned> MaybeCode = DeclsCursor.ReadCode(); in ReadDeclRecord() local
3839 if (!MaybeCode) in ReadDeclRecord()
3840 Fail("reading code", MaybeCode.takeError()); in ReadDeclRecord()
3841 unsigned Code = MaybeCode.get(); in ReadDeclRecord()
4285 Expected<unsigned> MaybeCode = Cursor.ReadCode(); in loadDeclUpdateRecords() local
4286 if (!MaybeCode) in loadDeclUpdateRecords()
4289 toString(MaybeCode.takeError())); in loadDeclUpdateRecords()
4290 unsigned Code = MaybeCode.get(); in loadDeclUpdateRecords()
4298 toString(MaybeCode.takeError())); in loadDeclUpdateRecords()
4366 Expected<unsigned> MaybeCode = Cursor.ReadCode(); in loadPendingDeclChain() local
[all …]
H A DASTReader.cpp1282 Expected<unsigned> MaybeCode = Cursor.ReadCode(); in ReadLexicalDeclContextStorage() local
1283 if (!MaybeCode) { in ReadLexicalDeclContextStorage()
1284 Error(MaybeCode.takeError()); in ReadLexicalDeclContextStorage()
1287 unsigned Code = MaybeCode.get(); in ReadLexicalDeclContextStorage()
1331 Expected<unsigned> MaybeCode = Cursor.ReadCode(); in ReadVisibleDeclContextStorage() local
1332 if (!MaybeCode) { in ReadVisibleDeclContextStorage()
1333 Error(MaybeCode.takeError()); in ReadVisibleDeclContextStorage()
1336 unsigned Code = MaybeCode.get(); in ReadVisibleDeclContextStorage()
1592 Expected<unsigned> MaybeCode = SLocEntryCursor.ReadCode(); in ReadSLocEntry() local
1593 if (!MaybeCode) { in ReadSLocEntry()
[all …]