diff options
author | Zachary Turner <zturner@google.com> | 2017-02-27 22:11:43 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-02-27 22:11:43 +0000 |
commit | 120faca41bddd3a5922bdefbeb7c68908fda9ab9 (patch) | |
tree | e3c36b67c61a5021ed8847241cfaf9c59b48309a /llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp | |
parent | 4a7cc16e89b68d48335e7cd19837c3e67e12afb2 (diff) | |
download | llvm-120faca41bddd3a5922bdefbeb7c68908fda9ab9.zip llvm-120faca41bddd3a5922bdefbeb7c68908fda9ab9.tar.gz llvm-120faca41bddd3a5922bdefbeb7c68908fda9ab9.tar.bz2 |
[PDB] Partial resubmit of r296215, which improved PDB Stream Library.
This was reverted because it was breaking some builds, and
because of incorrect error code usage. Since the CL was
large and contained many different things, I'm resubmitting
it in pieces.
This portion is NFC, and consists of:
1) Renaming classes to follow a consistent naming convention.
2) Fixing the const-ness of the interface methods.
3) Adding detailed doxygen comments.
4) Fixing a few instances of passing `const BinaryStream& X`. These
are now passed as `BinaryStreamRef X`.
llvm-svn: 296394
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp b/llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp index 74389f6..2dc14b9 100644 --- a/llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp +++ b/llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp @@ -13,18 +13,16 @@ using namespace llvm; using namespace llvm::codeview; -using namespace llvm::msf; ModuleSubstream::ModuleSubstream() : Kind(ModuleSubstreamKind::None) {} -ModuleSubstream::ModuleSubstream(ModuleSubstreamKind Kind, - ReadableStreamRef Data) +ModuleSubstream::ModuleSubstream(ModuleSubstreamKind Kind, BinaryStreamRef Data) : Kind(Kind), Data(Data) {} -Error ModuleSubstream::initialize(ReadableStreamRef Stream, +Error ModuleSubstream::initialize(BinaryStreamRef Stream, ModuleSubstream &Info) { const ModuleSubsectionHeader *Header; - StreamReader Reader(Stream); + BinaryStreamReader Reader(Stream); if (auto EC = Reader.readObject(Header)) return EC; @@ -42,4 +40,4 @@ uint32_t ModuleSubstream::getRecordLength() const { ModuleSubstreamKind ModuleSubstream::getSubstreamKind() const { return Kind; } -ReadableStreamRef ModuleSubstream::getRecordData() const { return Data; } +BinaryStreamRef ModuleSubstream::getRecordData() const { return Data; } |