Go to file
Rafael Espindola 5c4f829424 Use std::error_code instead of llvm::error_code.
The idea of this patch is to turn llvm/Support/system_error.h into a
transitional header that just brings in the erorr_code api to the llvm
namespace. I will remove it shortly afterwards.

The cases where the general idea needed some tweaking:

* std::errc is a namespace in msvc, so we cannot use "using std::errc". I could
add an #ifdef, but there were not that many uses, so I just added std:: to
them in this patch.

* Template specialization had to be moved to the std namespace in this
patch set already.

* The msvc implementation of default_error_condition doesn't seem to
provide the same transformations as we need. Not too surprising since
the standard doesn't actually say what "equivalent" means. I fixed the
problem by keeping our old mapping and using it at error_code
construction time.

Despite these shortcomings I think this is still a good thing. Some reasons:

* The different implementations of system_error might improve over time.
* It removes 925 lines of code from llvm already.
* It removes 6313 bytes from the text segment of the clang binary when
it is built with gcc and 2816 bytes when building with clang and
libstdc++.

llvm-svn: 210687
2014-06-11 19:05:50 +00:00
clang Add some comments to TypoCorrectionConsumer. 2014-06-11 18:33:46 +00:00
clang-tools-extra clang-tidy: [use-override] Remove 'override' if 'final' is also present. 2014-06-11 12:18:24 +00:00
compiler-rt [asan] Fix mmap-ed coverage with coverage=0. 2014-06-11 15:11:26 +00:00
debuginfo-tests relax testcase for LLDB output format compatibility. 2014-03-19 23:06:18 +00:00
libclc Fix build broken by LLVM commit r209103 2014-06-03 15:43:57 +00:00
libcxx Implement string_view from the library fundamentals TS (n4023). Also works in C++11 and 03, with reduced functionality (mostly in the area of constexpr) 2014-06-11 16:44:55 +00:00
libcxxabi Add a FAQ section, with a question about why the std::exception class destructors live in libc++abi 2014-06-11 16:54:09 +00:00
lld [Mips] Fix the bug -- symbol referred by the R_MIPS_TLS_GD relocation 2014-06-11 10:08:08 +00:00
lldb Restore select limitations comment for non-Apple platforms 2014-06-11 18:10:41 +00:00
llvm Use std::error_code instead of llvm::error_code. 2014-06-11 19:05:50 +00:00
openmp CMake: remove duplicated source file from list 2014-06-02 13:09:24 +00:00
polly www: Fix grammar. 2014-06-10 20:18:16 +00:00