[llvm] [cmake] Add possibility to use ChooseMSVCCRT.cmake when include LLVM library
[llvm-core.git] / include / llvm / DebugInfo / CodeView / SymbolDumpDelegate.h
blob12f45dcb21ffc54086fdb7e808c014e098daa82b
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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_DEBUGINFO_CODEVIEW_SYMBOLDUMPDELEGATE_H
10 #define LLVM_DEBUGINFO_CODEVIEW_SYMBOLDUMPDELEGATE_H
12 #include "llvm/ADT/ArrayRef.h"
13 #include "llvm/ADT/StringRef.h"
14 #include "llvm/DebugInfo/CodeView/SymbolVisitorDelegate.h"
15 #include <cstdint>
17 namespace llvm {
18 namespace codeview {
20 class SymbolDumpDelegate : public SymbolVisitorDelegate {
21 public:
22 ~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;
31 } // end namespace codeview
32 } // end namespace llvm
34 #endif // LLVM_DEBUGINFO_CODEVIEW_SYMBOLDUMPDELEGATE_H