10 #ifndef LLVM_DEBUGINFO_CODEVIEW_TYPEDUMPVISITOR_H 11 #define LLVM_DEBUGINFO_CODEVIEW_TYPEDUMPVISITOR_H 30 bool PrintRecordBytes)
31 : W(W), PrintRecordBytes(PrintRecordBytes), TpiTypes(TpiTypes) {}
55 #define TYPE_RECORD(EnumName, EnumVal, Name) \ 56 Error visitKnownRecord(CVType &CVR, Name##Record &Record) override; 57 #define MEMBER_RECORD(EnumName, EnumVal, Name) \ 58 Error visitKnownMember(CVMemberRecord &CVR, Name##Record &Record) override; 59 #define TYPE_RECORD_ALIAS(EnumName, EnumVal, Name, AliasName) 60 #define MEMBER_RECORD_ALIAS(EnumName, EnumVal, Name, AliasName) 61 #include "llvm/DebugInfo/CodeView/CodeViewTypes.def" 64 void printMemberAttributes(MemberAttributes
Attrs);
71 TypeCollection &getSourceTypes()
const {
72 return IpiTypes ? *IpiTypes : TpiTypes;
77 bool PrintRecordBytes =
false;
79 TypeCollection &TpiTypes;
80 TypeCollection *IpiTypes =
nullptr;
void printItemIndex(StringRef FieldName, TypeIndex TI) const
This class represents lattice values for constants.
Error visitTypeEnd(CVType &Record) override
void printTypeIndex(StringRef FieldName, TypeIndex TI) const
Error visitUnknownType(CVType &Record) override
Action to take on unknown types. By default, they are ignored.
TypeDumpVisitor(TypeCollection &TpiTypes, ScopedPrinter *W, bool PrintRecordBytes)
constexpr char Attrs[]
Key for Kernel::Metadata::mAttrs.
MethodKind
Part of member attribute flags. (CV_methodprop_e)
Error visitTypeBegin(CVType &Record) override
Paired begin/end actions for all types.
Error visitUnknownMember(CVMemberRecord &Record) override
Error visitMemberBegin(CVMemberRecord &Record) override
MethodOptions
Equivalent to CV_fldattr_t bitfield.
Dumper for CodeView type streams found in COFF object files and PDB files.
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...
MemberAccess
Source-level access specifier. (CV_access_e)
Lightweight error class with error context and mandatory checking.
Error visitMemberEnd(CVMemberRecord &Record) override
StringRef - Represent a constant reference to a string, i.e.