[llvm] [cmake] Add possibility to use ChooseMSVCCRT.cmake when include LLVM library
[llvm-core.git] / include / llvm / DebugInfo / CodeView / CVSymbolVisitor.h
blob1615ff41df125fe0d3d80e1fe9260541d342de66
1 //===- CVSymbolVisitor.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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_DEBUGINFO_CODEVIEW_CVSYMBOLVISITOR_H
10 #define LLVM_DEBUGINFO_CODEVIEW_CVSYMBOLVISITOR_H
12 #include "llvm/DebugInfo/CodeView/CVRecord.h"
13 #include "llvm/DebugInfo/CodeView/CodeView.h"
14 #include "llvm/DebugInfo/CodeView/SymbolRecord.h"
15 #include "llvm/DebugInfo/CodeView/SymbolVisitorDelegate.h"
16 #include "llvm/Support/ErrorOr.h"
18 namespace llvm {
19 namespace codeview {
20 class SymbolVisitorCallbacks;
22 class CVSymbolVisitor {
23 public:
24 CVSymbolVisitor(SymbolVisitorCallbacks &Callbacks);
26 Error visitSymbolRecord(CVSymbol &Record);
27 Error visitSymbolRecord(CVSymbol &Record, uint32_t Offset);
28 Error visitSymbolStream(const CVSymbolArray &Symbols);
29 Error visitSymbolStream(const CVSymbolArray &Symbols, uint32_t InitialOffset);
31 private:
32 SymbolVisitorCallbacks &Callbacks;
35 } // end namespace codeview
36 } // end namespace llvm
38 #endif // LLVM_DEBUGINFO_CODEVIEW_CVSYMBOLVISITOR_H