|
LLVM
4.0.0
|
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) |
Dumper for CodeView type streams found in COFF object files and PDB files.
Definition at line 26 of file CVTypeDumper.h.
|
inlineexplicit |
Definition at line 28 of file CVTypeDumper.h.
| 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().
|
static |
Definition at line 64 of file CVTypeDumper.cpp.
References llvm::StringRef::empty(), llvm::codeview::TypeIndex::getIndex(), llvm::codeview::TypeDatabase::getTypeName(), llvm::codeview::TypeIndex::isNoneType(), and llvm::ScopedPrinter::printHex().
Referenced by llvm::codeview::TypeDumpVisitor::printTypeIndex().
1.8.6