llvm-6502/unittests/Support
Rafael Espindola 7acd886ecf 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++.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210687 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-11 19:05:50 +00:00
..
AlignOfTest.cpp
AllocatorTest.cpp [Allocator] Make BumpPtrAllocator movable and move assignable. 2014-04-16 10:48:27 +00:00
ArrayRecyclerTest.cpp
BlockFrequencyTest.cpp Support: More BlockFrequencyTest => BranchProbabilityTest 2014-04-29 16:44:59 +00:00
BranchProbabilityTest.cpp SupportTest: Fix test names harder 2014-04-29 17:07:45 +00:00
Casting.cpp [C++11] Use 'nullptr'. 2014-06-08 22:29:17 +00:00
CMakeLists.txt Support: Add unit tests for BranchProbability 2014-04-29 16:12:13 +00:00
CommandLineTest.cpp [C++11] Use 'nullptr'. 2014-06-08 22:29:17 +00:00
CompressionTest.cpp Simplify compression API by compressing into a SmallVector rather than a MemoryBuffer 2014-04-05 21:53:04 +00:00
ConvertUTFTest.cpp
DataExtractorTest.cpp [C++11] Use 'nullptr'. 2014-06-08 22:29:17 +00:00
EndianTest.cpp
ErrorOrTest.cpp Use std::error_code instead of llvm::error_code. 2014-06-11 19:05:50 +00:00
FileOutputBufferTest.cpp Use std::unique_ptr instead of OwningPtr in the MemoryBuffer unittests. 2014-05-18 21:01:46 +00:00
formatted_raw_ostream_test.cpp
IteratorTest.cpp [ADT] Generalize pointee_iterator to smart pointers by using decltype. 2014-04-24 21:10:35 +00:00
LEB128Test.cpp
LineIteratorTest.cpp
LockFileManagerTest.cpp Fix these tests on windows. 2014-03-25 13:19:03 +00:00
Makefile
ManagedStatic.cpp [C++11] Use 'nullptr'. 2014-06-08 22:29:17 +00:00
MathExtrasTest.cpp
MD5Test.cpp
MemoryBufferTest.cpp [C++11] Use 'nullptr'. 2014-06-08 22:29:17 +00:00
MemoryTest.cpp [C++11] Use 'nullptr'. 2014-06-08 22:29:17 +00:00
Path.cpp Use std::error_code instead of llvm::error_code. 2014-06-11 19:05:50 +00:00
ProcessTest.cpp
ProgramTest.cpp [C++11] Use 'nullptr'. 2014-06-08 22:29:17 +00:00
raw_ostream_test.cpp [C++11] Use 'nullptr'. 2014-06-08 22:29:17 +00:00
RegexTest.cpp
SourceMgrTest.cpp
SwapByteOrderTest.cpp
ThreadLocalTest.cpp [C++11] Use 'nullptr'. 2014-06-08 22:29:17 +00:00
TimeValueTest.cpp [C++11] Use 'nullptr'. 2014-06-08 22:29:17 +00:00
UnicodeTest.cpp
YAMLIOTest.cpp [C++11] Use 'nullptr'. 2014-06-08 22:29:17 +00:00
YAMLParserTest.cpp