Andrew Scull | 5e1ddfa | 2018-08-14 10:06:54 +0100 | [diff] [blame^] | 1 | //===-- SymbolDumpDelegate.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_SYMBOLDUMPDELEGATE_H |
| 11 | #define LLVM_DEBUGINFO_CODEVIEW_SYMBOLDUMPDELEGATE_H |
| 12 | |
| 13 | #include "llvm/ADT/ArrayRef.h" |
| 14 | #include "llvm/ADT/StringRef.h" |
| 15 | #include "llvm/DebugInfo/CodeView/SymbolVisitorDelegate.h" |
| 16 | #include <cstdint> |
| 17 | |
| 18 | namespace llvm { |
| 19 | namespace codeview { |
| 20 | |
| 21 | class SymbolDumpDelegate : public SymbolVisitorDelegate { |
| 22 | public: |
| 23 | ~SymbolDumpDelegate() override = default; |
| 24 | |
| 25 | virtual void printRelocatedField(StringRef Label, uint32_t RelocOffset, |
| 26 | uint32_t Offset, |
| 27 | StringRef *RelocSym = nullptr) = 0; |
| 28 | virtual void printBinaryBlockWithRelocs(StringRef Label, |
| 29 | ArrayRef<uint8_t> Block) = 0; |
| 30 | }; |
| 31 | |
| 32 | } // end namespace codeview |
| 33 | } // end namespace llvm |
| 34 | |
| 35 | #endif // LLVM_DEBUGINFO_CODEVIEW_SYMBOLDUMPDELEGATE_H |