LLVM  4.0.0
CVTypeVisitor.h
Go to the documentation of this file.
1 //===- CVTypeVisitor.h ------------------------------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLVM_DEBUGINFO_CODEVIEW_CVTYPEVISITOR_H
11 #define LLVM_DEBUGINFO_CODEVIEW_CVTYPEVISITOR_H
12 
13 #include "llvm/ADT/SmallVector.h"
17 #include "llvm/Support/Error.h"
18 
19 namespace llvm {
20 namespace codeview {
21 
23 public:
24  explicit CVTypeVisitor(TypeVisitorCallbacks &Callbacks);
25 
28 
29  /// Visits the type records in Data. Sets the error flag on parse failures.
30  Error visitTypeStream(const CVTypeArray &Types);
31 
34 
35 private:
36  /// The interface to the class that gets notified of each visitation.
37  TypeVisitorCallbacks &Callbacks;
38 };
39 
40 } // end namespace codeview
41 } // end namespace llvm
42 
43 #endif // LLVM_DEBUGINFO_CODEVIEW_CVTYPEVISITOR_H
CVTypeVisitor(TypeVisitorCallbacks &Callbacks)
Error visitTypeStream(const CVTypeArray &Types)
Visits the type records in Data. Sets the error flag on parse failures.
Error visitTypeRecord(CVType &Record)
Error visitFieldListMemberStream(ArrayRef< uint8_t > FieldList)
Lightweight error class with error context and mandatory checking.
Error visitMemberRecord(CVMemberRecord &Record)