diff options
| author | Pavel Labath <pavel@labath.sk> | 2019-08-14 13:59:04 +0000 |
|---|---|---|
| committer | Pavel Labath <pavel@labath.sk> | 2019-08-14 13:59:04 +0000 |
| commit | 0d802a4923e6a603aa1ee06d0969a793cc93f858 (patch) | |
| tree | fde71a9121ecb420aef7eb9c858b3101056a836e /llvm/lib/Support | |
| parent | 571c52af58d91662f2a7f2c7570bab63dee71a53 (diff) | |
| download | bcm5719-llvm-0d802a4923e6a603aa1ee06d0969a793cc93f858.tar.gz bcm5719-llvm-0d802a4923e6a603aa1ee06d0969a793cc93f858.zip | |
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
Diffstat (limited to 'llvm/lib/Support')
| -rw-r--r-- | llvm/lib/Support/raw_ostream.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Support/raw_ostream.cpp b/llvm/lib/Support/raw_ostream.cpp index 4a2d6d20951..b9989371f5e 100644 --- a/llvm/lib/Support/raw_ostream.cpp +++ b/llvm/lib/Support/raw_ostream.cpp @@ -139,11 +139,6 @@ raw_ostream &raw_ostream::operator<<(long long N) { return *this; } -raw_ostream &raw_ostream::operator<<(std::error_code EC) { - return *this << EC.message() << " (" << EC.category().name() << ':' - << EC.value() << ')'; -} - raw_ostream &raw_ostream::write_hex(unsigned long long N) { llvm::write_hex(*this, N, HexPrintStyle::Lower); return *this; |

