LLVM  5.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 
15 #include "llvm/Support/Error.h"
16 
17 namespace llvm {
18 namespace codeview {
19 class TypeCollection;
20 class TypeVisitorCallbacks;
21 
23  VDS_BytesPresent, // The record bytes are passed into the the visitation
24  // function. The algorithm should first deserialize them
25  // before passing them on through the pipeline.
26  VDS_BytesExternal // The record bytes are not present, and it is the
27  // responsibility of the visitor callback interface to
28  // supply the bytes.
29 };
30 
31 Error visitTypeRecord(CVType &Record, TypeIndex Index,
32  TypeVisitorCallbacks &Callbacks,
34 Error visitTypeRecord(CVType &Record, TypeVisitorCallbacks &Callbacks,
36 
37 Error visitMemberRecord(CVMemberRecord Record, TypeVisitorCallbacks &Callbacks,
40  TypeVisitorCallbacks &Callbacks);
41 
43  TypeVisitorCallbacks &Callbacks);
44 
45 Error visitTypeStream(const CVTypeArray &Types, TypeVisitorCallbacks &Callbacks,
47 Error visitTypeStream(CVTypeRange Types, TypeVisitorCallbacks &Callbacks);
48 Error visitTypeStream(TypeCollection &Types, TypeVisitorCallbacks &Callbacks);
49 
50 } // end namespace codeview
51 } // end namespace llvm
52 
53 #endif // LLVM_DEBUGINFO_CODEVIEW_CVTYPEVISITOR_H
VarStreamArray< CVType > CVTypeArray
Definition: TypeRecord.h:43
TypeLeafKind
Duplicate copy of the above enum, but using the official CV names.
Definition: CodeView.h:34
Error visitMemberRecordStream(ArrayRef< uint8_t > FieldList, TypeVisitorCallbacks &Callbacks)
CVRecord< TypeLeafKind > CVType
Definition: TypeRecord.h:36
Error visitTypeRecord(CVType &Record, TypeIndex Index, TypeVisitorCallbacks &Callbacks, VisitorDataSource Source=VDS_BytesPresent)
Error visitTypeStream(const CVTypeArray &Types, TypeVisitorCallbacks &Callbacks, VisitorDataSource Source=VDS_BytesPresent)
Error visitMemberRecord(CVMemberRecord Record, TypeVisitorCallbacks &Callbacks, VisitorDataSource Source=VDS_BytesPresent)
const unsigned Kind
Lightweight error class with error context and mandatory checking.
Definition: Error.h:156
iterator_range< CVTypeArray::Iterator > CVTypeRange
Definition: TypeRecord.h:44