Searched refs:MaybeRead (Results 1 – 4 of 4) sorted by relevance
25 Expected<SimpleBitstreamCursor::word_t> MaybeRead = Cursor.Read(8); in TEST() local26 EXPECT_TRUE((bool)MaybeRead); in TEST()28 MaybeRead = Cursor.Read(24); in TEST()29 EXPECT_TRUE((bool)MaybeRead); in TEST()61 Expected<SimpleBitstreamCursor::word_t> MaybeRead = Cursor.Read(1); in TEST() local62 EXPECT_TRUE((bool)MaybeRead); in TEST()122 Expected<SimpleBitstreamCursor::word_t> MaybeRead = Stream.Read(32); in TEST() local123 ASSERT_TRUE((bool)MaybeRead); in TEST()124 ASSERT_EQ(Magic, MaybeRead.get()); in TEST()158 Expected<SimpleBitstreamCursor::word_t> MaybeRead = Cursor.Read(8); in TEST() local[all …]
233 Expected<unsigned> MaybeRead = Read(NumBits); in ReadVBR() local234 if (!MaybeRead) in ReadVBR()235 return MaybeRead; in ReadVBR()236 uint32_t Piece = MaybeRead.get(); in ReadVBR()250 MaybeRead = Read(NumBits); in ReadVBR()251 if (!MaybeRead) in ReadVBR()252 return MaybeRead; in ReadVBR()253 Piece = MaybeRead.get(); in ReadVBR()260 Expected<uint64_t> MaybeRead = Read(NumBits); in ReadVBR64() local261 if (!MaybeRead) in ReadVBR64()[all …]
234 Expected<unsigned> MaybeRead = Read(NumBits); in ReadVBR() local235 if (!MaybeRead) in ReadVBR()236 return MaybeRead; in ReadVBR()237 uint32_t Piece = MaybeRead.get(); in ReadVBR()251 MaybeRead = Read(NumBits); in ReadVBR()252 if (!MaybeRead) in ReadVBR()253 return MaybeRead; in ReadVBR()254 Piece = MaybeRead.get(); in ReadVBR()261 Expected<uint64_t> MaybeRead = Read(NumBits); in ReadVBR64() local262 if (!MaybeRead) in ReadVBR64()[all …]
699 Expected<llvm::SimpleBitstreamCursor::word_t> MaybeRead = Stream.Read(8); in validateStream() local700 if (!MaybeRead) in validateStream()701 return MaybeRead.takeError(); in validateStream()702 else if (MaybeRead.get() != BitCodeConstants::Signature[Idx]) in validateStream()