CVSymbolVisitor.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- CVSymbolVisitor.h ----------------------------------------*- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_DEBUGINFO_CODEVIEW_CVSYMBOLVISITOR_H
  14. #define LLVM_DEBUGINFO_CODEVIEW_CVSYMBOLVISITOR_H
  15. #include "llvm/DebugInfo/CodeView/CVRecord.h"
  16. #include "llvm/Support/ErrorOr.h"
  17. namespace llvm {
  18. namespace codeview {
  19. class SymbolVisitorCallbacks;
  20. class CVSymbolVisitor {
  21. public:
  22. CVSymbolVisitor(SymbolVisitorCallbacks &Callbacks);
  23. Error visitSymbolRecord(CVSymbol &Record);
  24. Error visitSymbolRecord(CVSymbol &Record, uint32_t Offset);
  25. Error visitSymbolStream(const CVSymbolArray &Symbols);
  26. Error visitSymbolStream(const CVSymbolArray &Symbols, uint32_t InitialOffset);
  27. private:
  28. SymbolVisitorCallbacks &Callbacks;
  29. };
  30. } // end namespace codeview
  31. } // end namespace llvm
  32. #endif // LLVM_DEBUGINFO_CODEVIEW_CVSYMBOLVISITOR_H
  33. #ifdef __GNUC__
  34. #pragma GCC diagnostic pop
  35. #endif