Home | History | Annotate | Download | only in CodeView
      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/StringRef.h"
     14 #include <cstdint>
     15 
     16 namespace llvm {
     17 
     18 class BinaryStreamReader;
     19 
     20 namespace codeview {
     21 
     22 class SymbolVisitorDelegate {
     23 public:
     24   virtual ~SymbolVisitorDelegate() = default;
     25 
     26   virtual uint32_t getRecordOffset(BinaryStreamReader Reader) = 0;
     27   virtual StringRef getFileNameForFileOffset(uint32_t FileOffset) = 0;
     28   virtual StringRef getStringTable() = 0;
     29 };
     30 
     31 } // end namespace codeview
     32 
     33 } // end namespace llvm
     34 
     35 #endif // LLVM_DEBUGINFO_CODEVIEW_SYMBOLVISITORDELEGATE_H
     36