aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-07-28 19:12:28 +0000
committerZachary Turner <zturner@google.com>2016-07-28 19:12:28 +0000
commitd66889cbae749ceffca88f094274e2d64c2cb8f8 (patch)
tree81e34f9af216751ced0d50609d558d2f15277b46 /llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp
parent199f48a5f0d5aee8737880a78d81216d60cf785d (diff)
downloadllvm-d66889cbae749ceffca88f094274e2d64c2cb8f8.zip
llvm-d66889cbae749ceffca88f094274e2d64c2cb8f8.tar.gz
llvm-d66889cbae749ceffca88f094274e2d64c2cb8f8.tar.bz2
[pdb] Refactor library to more clearly separate reading/writing
Reviewed By: amccarth, ruiu Differential Revision: https://reviews.llvm.org/D22693 llvm-svn: 277019
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp')
-rw-r--r--llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp b/llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp
index 5ab8212..6473338 100644
--- a/llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp
+++ b/llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp
@@ -17,10 +17,12 @@ using namespace llvm::msf;
ModuleSubstream::ModuleSubstream() : Kind(ModuleSubstreamKind::None) {}
-ModuleSubstream::ModuleSubstream(ModuleSubstreamKind Kind, StreamRef Data)
+ModuleSubstream::ModuleSubstream(ModuleSubstreamKind Kind,
+ ReadableStreamRef Data)
: Kind(Kind), Data(Data) {}
-Error ModuleSubstream::initialize(StreamRef Stream, ModuleSubstream &Info) {
+Error ModuleSubstream::initialize(ReadableStreamRef Stream,
+ ModuleSubstream &Info) {
const ModuleSubsectionHeader *Header;
StreamReader Reader(Stream);
if (auto EC = Reader.readObject(Header))
@@ -40,4 +42,4 @@ uint32_t ModuleSubstream::getRecordLength() const {
ModuleSubstreamKind ModuleSubstream::getSubstreamKind() const { return Kind; }
-StreamRef ModuleSubstream::getRecordData() const { return Data; }
+ReadableStreamRef ModuleSubstream::getRecordData() const { return Data; }