#include "llvm/Bitstream/BitstreamReader.h"
#include "llvm/ADT/StringRef.h"
#include <cassert>
#include <optional>
#include <string>
usingnamespacellvm;
static Error error(const char *Message) { … }
Error BitstreamCursor::EnterSubBlock(unsigned BlockID, unsigned *NumWordsP) { … }
static Expected<uint64_t> readAbbreviatedField(BitstreamCursor &Cursor,
const BitCodeAbbrevOp &Op) { … }
Expected<unsigned> BitstreamCursor::skipRecord(unsigned AbbrevID) { … }
Expected<unsigned> BitstreamCursor::readRecord(unsigned AbbrevID,
SmallVectorImpl<uint64_t> &Vals,
StringRef *Blob) { … }
Error BitstreamCursor::ReadAbbrevRecord() { … }
Expected<std::optional<BitstreamBlockInfo>>
BitstreamCursor::ReadBlockInfoBlock(bool ReadBlockInfoNames) { … }