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)
commit0d802a4923e6a603aa1ee06d0969a793cc93f858
treefde71a9121ecb420aef7eb9c858b3101056a836e
parent571c52af58d91662f2a7f2c7570bab63dee71a53
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.

llvm-svn: 368854
llvm/include/llvm/Support/raw_ostream.h
llvm/lib/Support/raw_ostream.cpp
llvm/unittests/BinaryFormat/TestFileMagic.cpp
llvm/unittests/Support/ErrorTest.cpp
llvm/unittests/Support/FileOutputBufferTest.cpp
llvm/unittests/Support/Host.cpp
llvm/unittests/Support/Path.cpp
llvm/unittests/Support/ProgramTest.cpp
llvm/unittests/Support/ReplaceFileTest.cpp
llvm/unittests/Support/raw_pwrite_stream_test.cpp