diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2017-02-25 17:04:23 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2017-02-25 17:04:23 +0000 |
commit | 05a75e40da0f83639111687799eaab2c07c00ef0 (patch) | |
tree | 8ade745eed4316647c5098f24acd74af027ff364 /llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp | |
parent | 09ecd3117e151c645d2870409b5a78b2aeac326d (diff) | |
download | llvm-05a75e40da0f83639111687799eaab2c07c00ef0.zip llvm-05a75e40da0f83639111687799eaab2c07c00ef0.tar.gz llvm-05a75e40da0f83639111687799eaab2c07c00ef0.tar.bz2 |
Revert r296215, "[PDB] General improvements to Stream library." and followings.
r296215, "[PDB] General improvements to Stream library."
r296217, "Disable BinaryStreamTest.StreamReaderObject temporarily."
r296220, "Re-enable BinaryStreamTest.StreamReaderObject."
r296244, "[PDB] Disable some tests that are breaking bots."
r296249, "Add static_cast to silence -Wc++11-narrowing."
std::errc::no_buffer_space should be used for OS-oriented errors for socket transmission.
(Seek discussions around llvm/xray.)
I could substitute s/no_buffer_space/others/g, but I revert whole them ATM.
Could we define and use LLVM errors there?
llvm-svn: 296258
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp b/llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp index 2dc14b9..74389f6 100644 --- a/llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp +++ b/llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp @@ -13,16 +13,18 @@ using namespace llvm; using namespace llvm::codeview; +using namespace llvm::msf; ModuleSubstream::ModuleSubstream() : Kind(ModuleSubstreamKind::None) {} -ModuleSubstream::ModuleSubstream(ModuleSubstreamKind Kind, BinaryStreamRef Data) +ModuleSubstream::ModuleSubstream(ModuleSubstreamKind Kind, + ReadableStreamRef Data) : Kind(Kind), Data(Data) {} -Error ModuleSubstream::initialize(BinaryStreamRef Stream, +Error ModuleSubstream::initialize(ReadableStreamRef Stream, ModuleSubstream &Info) { const ModuleSubsectionHeader *Header; - BinaryStreamReader Reader(Stream); + StreamReader Reader(Stream); if (auto EC = Reader.readObject(Header)) return EC; @@ -40,4 +42,4 @@ uint32_t ModuleSubstream::getRecordLength() const { ModuleSubstreamKind ModuleSubstream::getSubstreamKind() const { return Kind; } -BinaryStreamRef ModuleSubstream::getRecordData() const { return Data; } +ReadableStreamRef ModuleSubstream::getRecordData() const { return Data; } |