LLVM 22.0.0git
llvm::remarks::BitstreamBlockParserHelperBase Class Reference

#include "Remarks/BitstreamRemarkParser.h"

Inheritance diagram for llvm::remarks::BitstreamBlockParserHelperBase:
[legend]

Public Member Functions

 BitstreamBlockParserHelperBase (BitstreamCursor &Stream, unsigned BlockID, StringRef BlockName)
template<typename... Ts>
Error error (char const *Fmt, const Ts &...Vals)
Error expectBlock ()

Protected Member Functions

Error enterBlock ()
Error unknownRecord (unsigned AbbrevID)
Error unexpectedRecord (StringRef RecordName)
Error malformedRecord (StringRef RecordName)
Error unexpectedBlock (unsigned Code)

Protected Attributes

BitstreamCursorStream
StringRef BlockName
unsigned BlockID

Detailed Description

Definition at line 32 of file BitstreamRemarkParser.h.

Constructor & Destructor Documentation

◆ BitstreamBlockParserHelperBase()

llvm::remarks::BitstreamBlockParserHelperBase::BitstreamBlockParserHelperBase ( BitstreamCursor & Stream,
unsigned BlockID,
StringRef BlockName )
inline

Definition at line 40 of file BitstreamRemarkParser.h.

References BlockID, BlockName, and Stream.

Member Function Documentation

◆ enterBlock()

Error BitstreamBlockParserHelperBase::enterBlock ( )
protected

◆ error()

template<typename... Ts>
Error llvm::remarks::BitstreamBlockParserHelperBase::error ( char const * Fmt,
const Ts &... Vals )
inline

Definition at line 44 of file BitstreamRemarkParser.h.

References BlockName, llvm::formatv(), and llvm::make_error().

◆ expectBlock()

◆ malformedRecord()

Error BitstreamBlockParserHelperBase::malformedRecord ( StringRef RecordName)
protected

◆ unexpectedBlock()

Error BitstreamBlockParserHelperBase::unexpectedBlock ( unsigned Code)
protected

◆ unexpectedRecord()

Error BitstreamBlockParserHelperBase::unexpectedRecord ( StringRef RecordName)
protected

Definition at line 39 of file BitstreamRemarkParser.cpp.

References error.

◆ unknownRecord()

Error BitstreamBlockParserHelperBase::unknownRecord ( unsigned AbbrevID)
protected

Member Data Documentation

◆ BlockID

unsigned llvm::remarks::BitstreamBlockParserHelperBase::BlockID
protected

Definition at line 37 of file BitstreamRemarkParser.h.

Referenced by BitstreamBlockParserHelperBase(), enterBlock(), and expectBlock().

◆ BlockName

StringRef llvm::remarks::BitstreamBlockParserHelperBase::BlockName
protected

◆ Stream


The documentation for this class was generated from the following files: