SymbolDumpDelegate.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. //===-- SymbolDumpDelegate.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. #ifndef LLVM_DEBUGINFO_CODEVIEW_SYMBOLDUMPDELEGATE_H
  9. #define LLVM_DEBUGINFO_CODEVIEW_SYMBOLDUMPDELEGATE_H
  10. #include "llvm/ADT/ArrayRef.h"
  11. #include "llvm/ADT/StringRef.h"
  12. #include "llvm/DebugInfo/CodeView/SymbolVisitorDelegate.h"
  13. #include <cstdint>
  14. namespace llvm {
  15. namespace codeview {
  16. class SymbolDumpDelegate : public SymbolVisitorDelegate {
  17. public:
  18. ~SymbolDumpDelegate() override = default;
  19. virtual void printRelocatedField(StringRef Label, uint32_t RelocOffset,
  20. uint32_t Offset,
  21. StringRef *RelocSym = nullptr) = 0;
  22. virtual void printBinaryBlockWithRelocs(StringRef Label,
  23. ArrayRef<uint8_t> Block) = 0;
  24. };
  25. } // end namespace codeview
  26. } // end namespace llvm
  27. #endif // LLVM_DEBUGINFO_CODEVIEW_SYMBOLDUMPDELEGATE_H