diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:01:22 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:01:22 +0000 | 
| commit | 71d5a2540a98c81f5bcaeb48805e0e2881f530ef (patch) | |
| tree | 5343938942df402b49ec7300a1c25a2d4ccd5821 /include/llvm/DebugInfo/CodeView/ModuleSubstream.h | |
| parent | 31bbf64f3a4974a2d6c8b3b27ad2f519caf74057 (diff) | |
Notes
Diffstat (limited to 'include/llvm/DebugInfo/CodeView/ModuleSubstream.h')
| -rw-r--r-- | include/llvm/DebugInfo/CodeView/ModuleSubstream.h | 18 | 
1 files changed, 8 insertions, 10 deletions
diff --git a/include/llvm/DebugInfo/CodeView/ModuleSubstream.h b/include/llvm/DebugInfo/CodeView/ModuleSubstream.h index 8860ae42fc09..a1c5c93cc3f8 100644 --- a/include/llvm/DebugInfo/CodeView/ModuleSubstream.h +++ b/include/llvm/DebugInfo/CodeView/ModuleSubstream.h @@ -11,8 +11,8 @@  #define LLVM_DEBUGINFO_CODEVIEW_MODULESUBSTREAM_H  #include "llvm/DebugInfo/CodeView/CodeView.h" -#include "llvm/DebugInfo/MSF/StreamArray.h" -#include "llvm/DebugInfo/MSF/StreamRef.h" +#include "llvm/Support/BinaryStreamArray.h" +#include "llvm/Support/BinaryStreamRef.h"  #include "llvm/Support/Endian.h"  #include "llvm/Support/Error.h" @@ -59,23 +59,22 @@ struct ColumnNumberEntry {  class ModuleSubstream {  public:    ModuleSubstream(); -  ModuleSubstream(ModuleSubstreamKind Kind, msf::ReadableStreamRef Data); -  static Error initialize(msf::ReadableStreamRef Stream, ModuleSubstream &Info); +  ModuleSubstream(ModuleSubstreamKind Kind, BinaryStreamRef Data); +  static Error initialize(BinaryStreamRef Stream, ModuleSubstream &Info);    uint32_t getRecordLength() const;    ModuleSubstreamKind getSubstreamKind() const; -  msf::ReadableStreamRef getRecordData() const; +  BinaryStreamRef getRecordData() const;  private:    ModuleSubstreamKind Kind; -  msf::ReadableStreamRef Data; +  BinaryStreamRef Data;  }; -typedef msf::VarStreamArray<ModuleSubstream> ModuleSubstreamArray; +typedef VarStreamArray<ModuleSubstream> ModuleSubstreamArray;  } // namespace codeview -namespace msf {  template <> struct VarStreamArrayExtractor<codeview::ModuleSubstream> { -  Error operator()(ReadableStreamRef Stream, uint32_t &Length, +  Error operator()(BinaryStreamRef Stream, uint32_t &Length,                     codeview::ModuleSubstream &Info) const {      if (auto EC = codeview::ModuleSubstream::initialize(Stream, Info))        return EC; @@ -83,7 +82,6 @@ template <> struct VarStreamArrayExtractor<codeview::ModuleSubstream> {      return Error::success();    }  }; -} // namespace msf  } // namespace llvm  #endif // LLVM_DEBUGINFO_CODEVIEW_MODULESUBSTREAM_H  | 
