blob: 823636c398def110da630ab3e7bdcf1cd8c1ea15 [file] [log] [blame]
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01001//===-- 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
18namespace llvm {
19namespace codeview {
20
21class SymbolDumpDelegate : public SymbolVisitorDelegate {
22public:
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