10 #ifndef LLVM_DEBUGINFO_CODEVIEW_TYPEVISITORCALLBACKS_H 11 #define LLVM_DEBUGINFO_CODEVIEW_TYPEVISITORCALLBACKS_H 50 #define TYPE_RECORD(EnumName, EnumVal, Name) \ 51 virtual Error visitKnownRecord(CVType &CVR, Name##Record &Record) { \ 52 return Error::success(); \ 54 #define MEMBER_RECORD(EnumName, EnumVal, Name) \ 55 virtual Error visitKnownMember(CVMemberRecord &CVM, Name##Record &Record) { \ 56 return Error::success(); \ 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" 63 #undef TYPE_RECORD_ALIAS 65 #undef MEMBER_RECORD_ALIAS 71 #endif // LLVM_DEBUGINFO_CODEVIEW_TYPEVISITORCALLBACKS_H This class represents lattice values for constants.
virtual ~TypeVisitorCallbacks()=default
virtual Error visitUnknownMember(CVMemberRecord &Record)
virtual Error visitTypeBegin(CVType &Record, TypeIndex Index)
virtual Error visitUnknownType(CVType &Record)
Action to take on unknown types. By default, they are ignored.
virtual Error visitTypeEnd(CVType &Record)
static ErrorSuccess success()
Create a success value.
virtual Error visitMemberBegin(CVMemberRecord &Record)
virtual Error visitTypeBegin(CVType &Record)
Paired begin/end actions for all types.
Lightweight error class with error context and mandatory checking.
virtual Error visitMemberEnd(CVMemberRecord &Record)