1 //===- CVTypeVisitor.h ------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_DEBUGINFO_CODEVIEW_CVTYPEVISITOR_H
11 #define LLVM_DEBUGINFO_CODEVIEW_CVTYPEVISITOR_H
13 #include "llvm/DebugInfo/CodeView/CVRecord.h"
14 #include "llvm/DebugInfo/CodeView/TypeRecord.h"
15 #include "llvm/DebugInfo/CodeView/TypeVisitorCallbacks.h"
16 #include "llvm/Support/Error.h"
23 explicit CVTypeVisitor(TypeVisitorCallbacks &Callbacks);
25 Error visitTypeRecord(const CVRecord<TypeLeafKind> &Record);
27 /// Visits the type records in Data. Sets the error flag on parse failures.
28 Error visitTypeStream(const CVTypeArray &Types);
30 Error skipPadding(ArrayRef<uint8_t> &Data);
32 /// Visits individual member records of a field list record. Member records do
33 /// not describe their own length, and need special handling.
34 Error visitFieldList(const CVRecord<TypeLeafKind> &Record);
37 /// The interface to the class that gets notified of each visitation.
38 TypeVisitorCallbacks &Callbacks;
41 } // end namespace codeview
42 } // end namespace llvm
44 #endif // LLVM_DEBUGINFO_CODEVIEW_CVTYPEVISITOR_H