LLVM  6.0.0svn
Classes | Public Member Functions | List of all members
llvm::codeview::CodeViewRecordIO Class Reference

#include "llvm/DebugInfo/CodeView/CodeViewRecordIO.h"

Public Member Functions

 CodeViewRecordIO (BinaryStreamReader &Reader)
 
 CodeViewRecordIO (BinaryStreamWriter &Writer)
 
Error beginRecord (Optional< uint32_t > MaxLength)
 
Error endRecord ()
 
Error mapInteger (TypeIndex &TypeInd)
 
bool isReading () const
 
bool isWriting () const
 
uint32_t maxFieldLength () const
 
template<typename T >
Error mapObject (T &Value)
 
template<typename T >
Error mapInteger (T &Value)
 
template<typename T >
Error mapEnum (T &Value)
 
Error mapEncodedInteger (int64_t &Value)
 
Error mapEncodedInteger (uint64_t &Value)
 
Error mapEncodedInteger (APSInt &Value)
 
Error mapStringZ (StringRef &Value)
 
Error mapGuid (GUID &Guid)
 
Error mapStringZVectorZ (std::vector< StringRef > &Value)
 
template<typename SizeType , typename T , typename ElementMapper >
Error mapVectorN (T &Items, const ElementMapper &Mapper)
 
template<typename T , typename ElementMapper >
Error mapVectorTail (T &Items, const ElementMapper &Mapper)
 
Error mapByteVectorTail (ArrayRef< uint8_t > &Bytes)
 
Error mapByteVectorTail (std::vector< uint8_t > &Bytes)
 
Error padToAlignment (uint32_t Align)
 
Error skipPadding ()
 

Detailed Description

Definition at line 30 of file CodeViewRecordIO.h.

Constructor & Destructor Documentation

◆ CodeViewRecordIO() [1/2]

llvm::codeview::CodeViewRecordIO::CodeViewRecordIO ( BinaryStreamReader Reader)
inlineexplicit

Definition at line 36 of file CodeViewRecordIO.h.

◆ CodeViewRecordIO() [2/2]

llvm::codeview::CodeViewRecordIO::CodeViewRecordIO ( BinaryStreamWriter Writer)
inlineexplicit

Definition at line 37 of file CodeViewRecordIO.h.

References beginRecord(), endRecord(), and mapInteger().

Member Function Documentation

◆ beginRecord()

Error CodeViewRecordIO::beginRecord ( Optional< uint32_t MaxLength)

◆ endRecord()

Error CodeViewRecordIO::endRecord ( )

◆ isReading()

bool llvm::codeview::CodeViewRecordIO::isReading ( ) const
inline

Definition at line 44 of file CodeViewRecordIO.h.

Referenced by isWriting(), mapEnum(), and padToAlignment().

◆ isWriting()

bool llvm::codeview::CodeViewRecordIO::isWriting ( ) const
inline

◆ mapByteVectorTail() [1/2]

Error CodeViewRecordIO::mapByteVectorTail ( ArrayRef< uint8_t > &  Bytes)

◆ mapByteVectorTail() [2/2]

Error CodeViewRecordIO::mapByteVectorTail ( std::vector< uint8_t > &  Bytes)

◆ mapEncodedInteger() [1/3]

Error CodeViewRecordIO::mapEncodedInteger ( int64_t &  Value)

◆ mapEncodedInteger() [2/3]

Error CodeViewRecordIO::mapEncodedInteger ( uint64_t &  Value)

◆ mapEncodedInteger() [3/3]

Error CodeViewRecordIO::mapEncodedInteger ( APSInt Value)

◆ mapEnum()

template<typename T >
Error llvm::codeview::CodeViewRecordIO::mapEnum ( T Value)
inline

◆ mapGuid()

Error CodeViewRecordIO::mapGuid ( GUID Guid)

◆ mapInteger() [1/2]

Error CodeViewRecordIO::mapInteger ( TypeIndex TypeInd)

◆ mapInteger() [2/2]

template<typename T >
Error llvm::codeview::CodeViewRecordIO::mapInteger ( T Value)
inline

◆ mapObject()

template<typename T >
Error llvm::codeview::CodeViewRecordIO::mapObject ( T Value)
inline

◆ mapStringZ()

Error CodeViewRecordIO::mapStringZ ( StringRef Value)

◆ mapStringZVectorZ()

Error CodeViewRecordIO::mapStringZVectorZ ( std::vector< StringRef > &  Value)

◆ mapVectorN()

template<typename SizeType , typename T , typename ElementMapper >
Error llvm::codeview::CodeViewRecordIO::mapVectorN ( T Items,
const ElementMapper &  Mapper 
)
inline

◆ mapVectorTail()

template<typename T , typename ElementMapper >
Error llvm::codeview::CodeViewRecordIO::mapVectorTail ( T Items,
const ElementMapper &  Mapper 
)
inline

◆ maxFieldLength()

uint32_t CodeViewRecordIO::maxFieldLength ( ) const

◆ padToAlignment()

Error CodeViewRecordIO::padToAlignment ( uint32_t  Align)

◆ skipPadding()

Error CodeViewRecordIO::skipPadding ( )

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