1 //===- CVSymbolVisitor.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_CVSYMBOLVISITOR_H 11 #define LLVM_DEBUGINFO_CODEVIEW_CVSYMBOLVISITOR_H 12 13 #include "llvm/DebugInfo/CodeView/CVRecord.h" 14 #include "llvm/DebugInfo/CodeView/CodeView.h" 15 #include "llvm/DebugInfo/CodeView/SymbolRecord.h" 16 #include "llvm/DebugInfo/CodeView/SymbolVisitorDelegate.h" 17 #include "llvm/Support/ErrorOr.h" 18 19 namespace llvm { 20 namespace codeview { 21 class SymbolVisitorCallbacks; 22 23 class CVSymbolVisitor { 24 public: 25 CVSymbolVisitor(SymbolVisitorCallbacks &Callbacks); 26 27 Error visitSymbolRecord(CVSymbol &Record); 28 Error visitSymbolRecord(CVSymbol &Record, uint32_t Offset); 29 Error visitSymbolStream(const CVSymbolArray &Symbols); 30 Error visitSymbolStream(const CVSymbolArray &Symbols, uint32_t InitialOffset); 31 32 private: 33 SymbolVisitorCallbacks &Callbacks; 34 }; 35 36 } // end namespace codeview 37 } // end namespace llvm 38 39 #endif // LLVM_DEBUGINFO_CODEVIEW_CVSYMBOLVISITOR_H 40