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/ADT/SmallVector.h"
14 #include "llvm/DebugInfo/CodeView/CVRecord.h"
15 #include "llvm/DebugInfo/CodeView/TypeRecord.h"
16 #include "llvm/DebugInfo/CodeView/TypeVisitorCallbacks.h"
17 #include "llvm/Support/Error.h"
24 explicit CVTypeVisitor(TypeVisitorCallbacks &Callbacks);
26 Error visitTypeRecord(CVType &Record);
27 Error visitMemberRecord(CVMemberRecord &Record);
29 /// Visits the type records in Data. Sets the error flag on parse failures.
30 Error visitTypeStream(const CVTypeArray &Types);
32 Error visitFieldListMemberStream(ArrayRef<uint8_t> FieldList);
33 Error visitFieldListMemberStream(msf::StreamReader Reader);
36 /// The interface to the class that gets notified of each visitation.
37 TypeVisitorCallbacks &Callbacks;
40 } // end namespace codeview
41 } // end namespace llvm
43 #endif // LLVM_DEBUGINFO_CODEVIEW_CVTYPEVISITOR_H