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 "SymbolVisitorDelegate.h" 14 15 #include "llvm/ADT/ArrayRef.h" 16 #include "llvm/ADT/StringRef.h" 17 18 #include <stdint.h> 19 20 namespace llvm { 21 22 namespace codeview { 23 24 class SymbolDumpDelegate : public SymbolVisitorDelegate { 25 public: ~SymbolDumpDelegate()26 virtual ~SymbolDumpDelegate() {} 27 28 virtual void printRelocatedField(StringRef Label, uint32_t RelocOffset, 29 uint32_t Offset, 30 StringRef *RelocSym = nullptr) = 0; 31 virtual void printBinaryBlockWithRelocs(StringRef Label, 32 ArrayRef<uint8_t> Block) = 0; 33 }; 34 } // end namespace codeview 35 } // end namespace llvm 36 37 #endif // LLVM_DEBUGINFO_CODEVIEW_SYMBOLDUMPDELEGATE_H 38