mirror of
https://github.com/RPCSX/llvm.git
synced 2026-01-31 01:05:23 +01:00
This was all using ArrayRef<>s before which presents a problem when you want to serialize to or deserialize from an actual PDB stream. An ArrayRef<> is really just a special case of what can be handled with StreamInterface though (e.g. by using a ByteStream), so changing this to use StreamInterface allows us to plug in a PDB stream and get all the record serialization and deserialization for free on a MappedBlockStream. Subsequent patches will try to remove TypeTableBuilder and TypeRecordBuilder in favor of class that operate on Streams as well, which should allow us to completely merge the reading and writing codepaths for both types and symbols. Differential Revision: https://reviews.llvm.org/D25831 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284762 91177308-0d34-0410-b5e6-96231b3b80d8
38 lines
989 B
C++
38 lines
989 B
C++
//===-- SymbolVisitorDelegate.h ---------------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_DEBUGINFO_CODEVIEW_SYMBOLVISITORDELEGATE_H
|
|
#define LLVM_DEBUGINFO_CODEVIEW_SYMBOLVISITORDELEGATE_H
|
|
|
|
#include "llvm/ADT/ArrayRef.h"
|
|
#include "llvm/ADT/StringRef.h"
|
|
|
|
#include <stdint.h>
|
|
|
|
namespace llvm {
|
|
|
|
namespace msf {
|
|
class StreamReader;
|
|
}
|
|
|
|
namespace codeview {
|
|
|
|
class SymbolVisitorDelegate {
|
|
public:
|
|
virtual ~SymbolVisitorDelegate() {}
|
|
|
|
virtual uint32_t getRecordOffset(msf::StreamReader Reader) = 0;
|
|
virtual StringRef getFileNameForFileOffset(uint32_t FileOffset) = 0;
|
|
virtual StringRef getStringTable() = 0;
|
|
};
|
|
} // end namespace codeview
|
|
} // end namespace llvm
|
|
|
|
#endif // LLVM_DEBUGINFO_CODEVIEW_SYMBOLVISITORDELEGATE_H
|