SymbolVisitorDelegate.h revision 314564
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 16namespace llvm { 17 18namespace msf { 19class StreamReader; 20} // end namespace msf 21 22namespace codeview { 23 24class SymbolVisitorDelegate { 25public: 26 virtual ~SymbolVisitorDelegate() = default; 27 28 virtual uint32_t getRecordOffset(msf::StreamReader Reader) = 0; 29 virtual StringRef getFileNameForFileOffset(uint32_t FileOffset) = 0; 30 virtual StringRef getStringTable() = 0; 31}; 32 33} // end namespace codeview 34 35} // end namespace llvm 36 37#endif // LLVM_DEBUGINFO_CODEVIEW_SYMBOLVISITORDELEGATE_H 38