LLVM API Documentation

llvm::BitstreamReader Class Reference

#include <BitstreamReader.h>

Collaboration diagram for llvm::BitstreamReader:
[legend]

List of all members.

Public Member Functions

 BitstreamReader ()
 BitstreamReader (const unsigned char *Start, const unsigned char *End)
void init (const unsigned char *Start, const unsigned char *End)
 ~BitstreamReader ()
const unsigned char * getFirstChar () const
const unsigned char * getLastChar () const
void CollectBlockInfoNames ()
bool isIgnoringBlockInfoNames ()
bool hasBlockInfoRecords () const
const BlockInfo * getBlockInfo (unsigned BlockID) const
BlockInfo & getOrCreateBlockInfo (unsigned BlockID)

Classes

struct  BlockInfo


Detailed Description

Definition at line 26 of file BitstreamReader.h.


Constructor & Destructor Documentation

llvm::BitstreamReader::BitstreamReader (  )  [inline]

Definition at line 52 of file BitstreamReader.h.

llvm::BitstreamReader::BitstreamReader ( const unsigned char *  Start,
const unsigned char *  End 
) [inline]

Definition at line 55 of file BitstreamReader.h.

References init().

llvm::BitstreamReader::~BitstreamReader (  )  [inline]

Definition at line 66 of file BitstreamReader.h.

References llvm::BitstreamReader::BlockInfo::Abbrevs.


Member Function Documentation

void llvm::BitstreamReader::init ( const unsigned char *  Start,
const unsigned char *  End 
) [inline]

Definition at line 60 of file BitstreamReader.h.

Referenced by BitstreamReader(), and llvm::BitcodeReader::ParseBitcode().

const unsigned char* llvm::BitstreamReader::getFirstChar (  )  const [inline]

const unsigned char* llvm::BitstreamReader::getLastChar (  )  const [inline]

void llvm::BitstreamReader::CollectBlockInfoNames (  )  [inline]

CollectBlockInfoNames - This is called by clients that want block/record name information.

Definition at line 83 of file BitstreamReader.h.

bool llvm::BitstreamReader::isIgnoringBlockInfoNames (  )  [inline]

Definition at line 84 of file BitstreamReader.h.

Referenced by llvm::BitstreamCursor::ReadBlockInfoBlock().

bool llvm::BitstreamReader::hasBlockInfoRecords (  )  const [inline]

hasBlockInfoRecords - Return true if we've already read and processed the block info block for this Bitstream. We only process it for the first cursor that walks over it.

Definition at line 93 of file BitstreamReader.h.

Referenced by llvm::BitstreamCursor::ReadBlockInfoBlock().

const BlockInfo* llvm::BitstreamReader::getBlockInfo ( unsigned  BlockID  )  const [inline]

getBlockInfo - If there is block info for the specified ID, return it, otherwise return null.

Definition at line 97 of file BitstreamReader.h.

Referenced by llvm::BitstreamCursor::EnterSubBlock(), and getOrCreateBlockInfo().

BlockInfo& llvm::BitstreamReader::getOrCreateBlockInfo ( unsigned  BlockID  )  [inline]

Definition at line 109 of file BitstreamReader.h.

References BlockInfo, and getBlockInfo().

Referenced by llvm::BitstreamCursor::ReadBlockInfoBlock().


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