diff options
Diffstat (limited to 'lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp')
| -rw-r--r-- | lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp | 11 | 
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp b/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp index de02525270c4..d723282eb715 100644 --- a/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp +++ b/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp @@ -1,4 +1,4 @@ -//===- DebugStringTableSubsection.cpp - CodeView String Table ---*- C++ -*-===// +//===- DebugStringTableSubsection.cpp - CodeView String Table -------------===//  //  //                     The LLVM Compiler Infrastructure  // @@ -8,10 +8,14 @@  //===----------------------------------------------------------------------===//  #include "llvm/DebugInfo/CodeView/DebugStringTableSubsection.h" - -#include "llvm/Support/BinaryStream.h" +#include "llvm/ADT/StringRef.h" +#include "llvm/DebugInfo/CodeView/CodeView.h"  #include "llvm/Support/BinaryStreamReader.h"  #include "llvm/Support/BinaryStreamWriter.h" +#include "llvm/Support/Error.h" +#include <algorithm> +#include <cassert> +#include <cstdint>  using namespace llvm;  using namespace llvm::codeview; @@ -23,6 +27,7 @@ Error DebugStringTableSubsectionRef::initialize(BinaryStreamRef Contents) {    Stream = Contents;    return Error::success();  } +  Error DebugStringTableSubsectionRef::initialize(BinaryStreamReader &Reader) {    return Reader.readStreamRef(Stream);  }  | 
