• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===-- SymbolVisitorDelegate.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_SYMBOLVISITORDELEGATE_H
11 #define LLVM_DEBUGINFO_CODEVIEW_SYMBOLVISITORDELEGATE_H
12 
13 #include "llvm/ADT/ArrayRef.h"
14 #include "llvm/ADT/StringRef.h"
15 
16 #include <stdint.h>
17 
18 namespace llvm {
19 
20 namespace codeview {
21 
22 class SymbolVisitorDelegate {
23 public:
~SymbolVisitorDelegate()24   virtual ~SymbolVisitorDelegate() {}
25 
26   virtual uint32_t getRecordOffset(ArrayRef<uint8_t> Record) = 0;
27   virtual StringRef getFileNameForFileOffset(uint32_t FileOffset) = 0;
28   virtual StringRef getStringTable() = 0;
29 };
30 } // end namespace codeview
31 } // end namespace llvm
32 
33 #endif // LLVM_DEBUGINFO_CODEVIEW_SYMBOLVISITORDELEGATE_H
34