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 //===----------------------------------------------------------------------===// 8 9 #ifndef LLVM_DEBUGINFO_CODEVIEW_CVSYMBOLVISITOR_H 10 #define LLVM_DEBUGINFO_CODEVIEW_CVSYMBOLVISITOR_H 11 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" 17 18 namespace llvm { 19 namespace codeview { 20 class SymbolVisitorCallbacks; 21 22 class CVSymbolVisitor { 23 public: 24 CVSymbolVisitor(SymbolVisitorCallbacks &Callbacks); 25 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); 30 31 private: 32 SymbolVisitorCallbacks &Callbacks; 33 }; 34 35 } // end namespace codeview 36 } // end namespace llvm 37 38 #endif // LLVM_DEBUGINFO_CODEVIEW_CVSYMBOLVISITOR_H 39