LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::codeview::CVRecord< Kind > Class Template Reference

CVRecord is a fat pointer (base + size pair) to a symbol or type record. More...

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

Inheritance diagram for llvm::codeview::CVRecord< Kind >:
Inheritance graph
[legend]

Public Member Functions

 CVRecord ()=default
 
 CVRecord (ArrayRef< uint8_t > Data)
 
 CVRecord (const RecordPrefix *P, size_t Size)
 
bool valid () const
 
uint32_t length () const
 
Kind kind () const
 
ArrayRef< uint8_tdata () const
 
StringRef str_data () const
 
ArrayRef< uint8_tcontent () const
 

Public Attributes

ArrayRef< uint8_tRecordData
 

Detailed Description

template<typename Kind>
class llvm::codeview::CVRecord< Kind >

CVRecord is a fat pointer (base + size pair) to a symbol or type record.

Carrying the size separately instead of trusting the size stored in the record prefix provides some extra safety and flexibility.

Definition at line 29 of file CVRecord.h.

Constructor & Destructor Documentation

◆ CVRecord() [1/3]

template<typename Kind >
llvm::codeview::CVRecord< Kind >::CVRecord ( )
default

◆ CVRecord() [2/3]

template<typename Kind >
llvm::codeview::CVRecord< Kind >::CVRecord ( ArrayRef< uint8_t Data)
inline

Definition at line 33 of file CVRecord.h.

◆ CVRecord() [3/3]

template<typename Kind >
llvm::codeview::CVRecord< Kind >::CVRecord ( const RecordPrefix P,
size_t  Size 
)
inline

Definition at line 35 of file CVRecord.h.

Member Function Documentation

◆ content()

template<typename Kind >
ArrayRef< uint8_t > llvm::codeview::CVRecord< Kind >::content ( ) const
inline

◆ data()

template<typename Kind >
ArrayRef< uint8_t > llvm::codeview::CVRecord< Kind >::data ( ) const
inline

◆ kind()

template<typename Kind >
Kind llvm::codeview::CVRecord< Kind >::kind ( ) const
inline

◆ length()

template<typename Kind >
uint32_t llvm::codeview::CVRecord< Kind >::length ( ) const
inline

◆ str_data()

template<typename Kind >
StringRef llvm::codeview::CVRecord< Kind >::str_data ( ) const
inline

◆ valid()

template<typename Kind >
bool llvm::codeview::CVRecord< Kind >::valid ( ) const
inline

Definition at line 38 of file CVRecord.h.

References llvm::codeview::CVRecord< Kind >::kind().

Member Data Documentation

◆ RecordData

template<typename Kind >
ArrayRef<uint8_t> llvm::codeview::CVRecord< Kind >::RecordData

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