summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2017-03-01 05:11:37 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2017-03-01 05:11:37 +0000
commit0d660ddb6d2a46dafff1eee80a027fc14c0c042c (patch)
tree9451155afbed3aa2392d0c924067afb89db244c2 /unittests
parentf2c41030838d9a575b1cb746281bae082ebd26ea (diff)
Revert r296581, "PDB/BinaryStreamTest.cpp: Appease mingw to avoid std::errc::no_buffer_space."
Wrong commit -- I have unstaged changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/DebugInfo/PDB/BinaryStreamTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/unittests/DebugInfo/PDB/BinaryStreamTest.cpp b/unittests/DebugInfo/PDB/BinaryStreamTest.cpp
index 6e99069fd67..5c22a4afa92 100644
--- a/unittests/DebugInfo/PDB/BinaryStreamTest.cpp
+++ b/unittests/DebugInfo/PDB/BinaryStreamTest.cpp
@@ -56,7 +56,7 @@ public:
Error readBytes(uint32_t Offset, uint32_t Size,
ArrayRef<uint8_t> &Buffer) override {
if (Offset + Size > Data.size())
- return errorCodeToError(make_error_code(std::errc::function_not_supported));
+ return errorCodeToError(make_error_code(std::errc::no_buffer_space));
uint32_t S = startIndex(Offset);
auto Ref = Data.drop_front(S);
if (Ref.size() >= Size) {
@@ -75,7 +75,7 @@ public:
Error readLongestContiguousChunk(uint32_t Offset,
ArrayRef<uint8_t> &Buffer) override {
if (Offset >= Data.size())
- return errorCodeToError(make_error_code(std::errc::function_not_supported));
+ return errorCodeToError(make_error_code(std::errc::no_buffer_space));
uint32_t S = startIndex(Offset);
Buffer = Data.drop_front(S);
return Error::success();
@@ -85,7 +85,7 @@ public:
Error writeBytes(uint32_t Offset, ArrayRef<uint8_t> SrcData) override {
if (Offset + SrcData.size() > Data.size())
- return errorCodeToError(make_error_code(std::errc::function_not_supported));
+ return errorCodeToError(make_error_code(std::errc::no_buffer_space));
if (SrcData.empty())
return Error::success();