SymbolDumpDelegate.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===-- SymbolDumpDelegate.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_SYMBOLDUMPDELEGATE_H
  14. #define LLVM_DEBUGINFO_CODEVIEW_SYMBOLDUMPDELEGATE_H
  15. #include "llvm/ADT/ArrayRef.h"
  16. #include "llvm/ADT/StringRef.h"
  17. #include "llvm/DebugInfo/CodeView/SymbolVisitorDelegate.h"
  18. #include <cstdint>
  19. namespace llvm {
  20. namespace codeview {
  21. class SymbolDumpDelegate : public SymbolVisitorDelegate {
  22. public:
  23. ~SymbolDumpDelegate() override = default;
  24. virtual void printRelocatedField(StringRef Label, uint32_t RelocOffset,
  25. uint32_t Offset,
  26. StringRef *RelocSym = nullptr) = 0;
  27. virtual void printBinaryBlockWithRelocs(StringRef Label,
  28. ArrayRef<uint8_t> Block) = 0;
  29. };
  30. } // end namespace codeview
  31. } // end namespace llvm
  32. #endif // LLVM_DEBUGINFO_CODEVIEW_SYMBOLDUMPDELEGATE_H
  33. #ifdef __GNUC__
  34. #pragma GCC diagnostic pop
  35. #endif