|
LLVM 23.0.0git
|
Dumper for CodeView type streams found in COFF object files and PDB files. More...
#include "llvm/DebugInfo/CodeView/TypeDumpVisitor.h"
Public Member Functions | |
| TypeDumpVisitor (TypeCollection &TpiTypes, ScopedPrinter *W, bool PrintRecordBytes) | |
| void | setIpiTypes (TypeCollection &Types) |
| When dumping types from an IPI stream in a PDB, a type index may refer to a type or an item ID. | |
| void | printTypeIndex (StringRef FieldName, TypeIndex TI) const |
| void | printItemIndex (StringRef FieldName, TypeIndex TI) const |
| Error | visitUnknownType (CVType &Record) override |
| Action to take on unknown types. By default, they are ignored. | |
| Error | visitUnknownMember (CVMemberRecord &Record) override |
| Error | visitTypeBegin (CVType &Record) override |
| Paired begin/end actions for all types. | |
| Error | visitTypeBegin (CVType &Record, TypeIndex Index) override |
| Error | visitTypeEnd (CVType &Record) override |
| Error | visitMemberBegin (CVMemberRecord &Record) override |
| Error | visitMemberEnd (CVMemberRecord &Record) override |
| Public Member Functions inherited from llvm::codeview::TypeVisitorCallbacks | |
| virtual | ~TypeVisitorCallbacks ()=default |
Dumper for CodeView type streams found in COFF object files and PDB files.
Definition at line 29 of file TypeDumpVisitor.h.
|
inline |
Definition at line 31 of file TypeDumpVisitor.h.
Definition at line 41 of file TypeDumpVisitor.cpp.
References llvm::codeview::printTypeIndex().
Definition at line 37 of file TypeDumpVisitor.cpp.
References llvm::codeview::printTypeIndex().
|
inline |
When dumping types from an IPI stream in a PDB, a type index may refer to a type or an item ID.
The dumper will lookup the "name" of the index in the item database if appropriate. If ItemDB is null, it will use TypeDB, which is correct when dumping types from an object file (/Z7).
Definition at line 39 of file TypeDumpVisitor.h.
|
overridevirtual |
Reimplemented from llvm::codeview::TypeVisitorCallbacks.
Definition at line 67 of file TypeDumpVisitor.cpp.
References getLeafTypeName(), llvm::codeview::getTypeLeafNames(), and llvm::Error::success().
|
overridevirtual |
Reimplemented from llvm::codeview::TypeVisitorCallbacks.
Definition at line 75 of file TypeDumpVisitor.cpp.
References llvm::codeview::getBytesAsCharacters(), and llvm::Error::success().
Paired begin/end actions for all types.
Receives all record data, including the fixed-length record prefix.
Reimplemented from llvm::codeview::TypeVisitorCallbacks.
Definition at line 45 of file TypeDumpVisitor.cpp.
References llvm::codeview::TypeIndex::fromArrayIndex(), and visitTypeBegin().
Referenced by visitTypeBegin().
Reimplemented from llvm::codeview::TypeVisitorCallbacks.
Definition at line 49 of file TypeDumpVisitor.cpp.
References getLeafTypeName(), llvm::codeview::getTypeLeafNames(), and llvm::Error::success().
Reimplemented from llvm::codeview::TypeVisitorCallbacks.
Definition at line 58 of file TypeDumpVisitor.cpp.
References llvm::codeview::getBytesAsCharacters(), and llvm::Error::success().
|
overridevirtual |
Reimplemented from llvm::codeview::TypeVisitorCallbacks.
Definition at line 325 of file TypeDumpVisitor.cpp.
References llvm::Error::success().
Action to take on unknown types. By default, they are ignored.
Reimplemented from llvm::codeview::TypeVisitorCallbacks.
Definition at line 330 of file TypeDumpVisitor.cpp.
References llvm::codeview::getTypeLeafNames(), and llvm::Error::success().