]> granicus.if.org Git - llvm/commit
Revert "raw_ostream: add operator<< overload for std::error_code"
authorPavel Labath <pavel@labath.sk>
Wed, 14 Aug 2019 13:59:04 +0000 (13:59 +0000)
committerPavel Labath <pavel@labath.sk>
Wed, 14 Aug 2019 13:59:04 +0000 (13:59 +0000)
commit8a4b825100f02de1b6c34832595c463f00798c15
treedce739f8b4f4f2e0ec1eb5704269cd7cc198fccf
parentc9850460b726c1764a6bbd18eca5219f10a28133
Revert "raw_ostream: add operator<< overload for std::error_code"

This reverts commit r368849, because it breaks some bots (e.g.
llvm-clang-x86_64-win-fast).

It turns out this is not as NFC as we had hoped, because operator== will
consider two std::error_codes to be distinct even though they both hold
"success" values if they have different categories.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368854 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/raw_ostream.h
lib/Support/raw_ostream.cpp
unittests/BinaryFormat/TestFileMagic.cpp
unittests/Support/ErrorTest.cpp
unittests/Support/FileOutputBufferTest.cpp
unittests/Support/Host.cpp
unittests/Support/Path.cpp
unittests/Support/ProgramTest.cpp
unittests/Support/ReplaceFileTest.cpp
unittests/Support/raw_pwrite_stream_test.cpp