LLVM  10.0.0svn
CVTypeVisitor.h
Go to the documentation of this file.
1 //===- CVTypeVisitor.h ------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_DEBUGINFO_CODEVIEW_CVTYPEVISITOR_H
10 #define LLVM_DEBUGINFO_CODEVIEW_CVTYPEVISITOR_H
11 
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 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 
32  TypeVisitorCallbacks &Callbacks,
35  TypeVisitorCallbackPipeline &Callbacks,
39 
43  TypeVisitorCallbacks &Callbacks);
44 
46  TypeVisitorCallbacks &Callbacks);
47 
48 Error visitTypeStream(const CVTypeArray &Types, TypeVisitorCallbacks &Callbacks,
52 
53 } // end namespace codeview
54 } // end namespace llvm
55 
56 #endif // LLVM_DEBUGINFO_CODEVIEW_CVTYPEVISITOR_H
This class represents lattice values for constants.
Definition: AllocatorList.h:23
TypeLeafKind
Duplicate copy of the above enum, but using the official CV names.
Definition: CodeView.h:33
Error visitMemberRecordStream(ArrayRef< uint8_t > FieldList, TypeVisitorCallbacks &Callbacks)
A 32-bit type reference.
Definition: TypeIndex.h:95
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)
A range adaptor for a pair of iterators.
Lightweight error class with error context and mandatory checking.
Definition: Error.h:157