Finishing touch for the std::error_code transition.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 13 Jun 2014 17:20:48 +0000 (17:20 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 13 Jun 2014 17:20:48 +0000 (17:20 +0000)
commitd8b23109b26f2070e21d5515ed2472ca9ab0111c
treeee7abbcf41f5cecd956761c5bcc135a53c6f10ab
parent33fe993f2ec3a146e5954db14aa9a751141677f0
Finishing touch for the std::error_code transition.

While std::error_code itself seems to work OK in all platforms, there
are few annoying differences with regards to the std::errc enumeration.

This patch adds a simple llvm enumeration, which will hopefully avoid build
breakages in other platforms and surprises as we get more uses of
std::error_code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210920 91177308-0d34-0410-b5e6-96231b3b80d8
16 files changed:
include/llvm/Support/Errc.h [new file with mode: 0644]
include/llvm/Support/ErrorOr.h
lib/Support/FileOutputBuffer.cpp
lib/Support/LockFileManager.cpp
lib/Support/MemoryBuffer.cpp
lib/Support/Path.cpp
lib/Support/Unix/Path.inc
lib/Support/Windows/Path.inc
lib/Support/WindowsError.cpp
lib/Support/YAMLTraits.cpp
tools/llvm-ar/llvm-ar.cpp
tools/llvm-cov/llvm-cov.cpp
tools/llvm-symbolizer/LLVMSymbolize.cpp
unittests/Support/ErrorOrTest.cpp
unittests/Support/Path.cpp
unittests/Transforms/DebugIR/DebugIR.cpp