SymbolVisitorDelegate.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===-- SymbolVisitorDelegate.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_SYMBOLVISITORDELEGATE_H
  14. #define LLVM_DEBUGINFO_CODEVIEW_SYMBOLVISITORDELEGATE_H
  15. #include "llvm/ADT/StringRef.h"
  16. #include <cstdint>
  17. namespace llvm {
  18. class BinaryStreamReader;
  19. namespace codeview {
  20. class DebugStringTableSubsectionRef;
  21. class SymbolVisitorDelegate {
  22. public:
  23. virtual ~SymbolVisitorDelegate() = default;
  24. virtual uint32_t getRecordOffset(BinaryStreamReader Reader) = 0;
  25. virtual StringRef getFileNameForFileOffset(uint32_t FileOffset) = 0;
  26. virtual DebugStringTableSubsectionRef getStringTable() = 0;
  27. };
  28. } // end namespace codeview
  29. } // end namespace llvm
  30. #endif // LLVM_DEBUGINFO_CODEVIEW_SYMBOLVISITORDELEGATE_H
  31. #ifdef __GNUC__
  32. #pragma GCC diagnostic pop
  33. #endif