LLVM  4.0.0
Public Member Functions | Static Public Member Functions | List of all members
llvm::codeview::CVTypeDumper Class Reference

Dumper for CodeView type streams found in COFF object files and PDB files. More...

#include <CVTypeDumper.h>

Public Member Functions

 CVTypeDumper (TypeDatabase &TypeDB)
 
Error dump (const CVType &Record, TypeVisitorCallbacks &Dumper)
 Dumps one type record. More...
 
Error dump (const CVTypeArray &Types, TypeVisitorCallbacks &Dumper)
 Dumps the type records in Types. More...
 
Error dump (ArrayRef< uint8_t > Data, TypeVisitorCallbacks &Dumper)
 Dumps the type records in Data. More...
 

Static Public Member Functions

static void printTypeIndex (ScopedPrinter &Printer, StringRef FieldName, TypeIndex TI, TypeDatabase &DB)
 

Detailed Description

Dumper for CodeView type streams found in COFF object files and PDB files.

Definition at line 26 of file CVTypeDumper.h.

Constructor & Destructor Documentation

llvm::codeview::CVTypeDumper::CVTypeDumper ( TypeDatabase TypeDB)
inlineexplicit

Definition at line 28 of file CVTypeDumper.h.

Member Function Documentation

Error CVTypeDumper::dump ( const CVType Record,
TypeVisitorCallbacks Dumper 
)

Dumps one type record.

Returns false if there was a type parsing error, and true otherwise. This should be called in order, since the dumper maintains state about previous records which are necessary for cross type references.

Definition at line 22 of file CVTypeDumper.cpp.

References llvm::codeview::TypeVisitorCallbackPipeline::addCallbackToPipeline(), llvm::codeview::EC, llvm::Error::success(), and llvm::codeview::CVTypeVisitor::visitTypeRecord().

Referenced by dump().

Error CVTypeDumper::dump ( const CVTypeArray Types,
TypeVisitorCallbacks Dumper 
)

Dumps the type records in Types.

Returns false if there was a type stream parse error, and true otherwise.

Definition at line 38 of file CVTypeDumper.cpp.

References llvm::codeview::TypeVisitorCallbackPipeline::addCallbackToPipeline(), llvm::codeview::EC, llvm::Error::success(), and llvm::codeview::CVTypeVisitor::visitTypeStream().

Error CVTypeDumper::dump ( ArrayRef< uint8_t >  Data,
TypeVisitorCallbacks Dumper 
)

Dumps the type records in Data.

Returns false if there was a type stream parse error, and true otherwise. Use this method instead of the CVTypeArray overload when type records are laid out contiguously in memory.

Definition at line 54 of file CVTypeDumper.cpp.

References dump(), llvm::codeview::EC, llvm::msf::StreamReader::getLength(), and llvm::msf::StreamReader::readArray().

void CVTypeDumper::printTypeIndex ( ScopedPrinter Printer,
StringRef  FieldName,
TypeIndex  TI,
TypeDatabase DB 
)
static

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