1 //===- CVSymbolVisitor.h ----------------------------------------*- C++ -*-===//
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
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"
20 class SymbolVisitorCallbacks
;
22 class CVSymbolVisitor
{
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
);
32 SymbolVisitorCallbacks
&Callbacks
;
35 } // end namespace codeview
36 } // end namespace llvm
38 #endif // LLVM_DEBUGINFO_CODEVIEW_CVSYMBOLVISITOR_H