Use error_condition from the std namespace.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210730 91177308-0d34-0410-b5e6-96231b3b80d8
Use error_category from the std namespace.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210732 91177308-0d34-0410-b5e6-96231b3b80d8
Don't use make_error_code from the llvm namespace.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210741 91177308-0d34-0410-b5e6-96231b3b80d8
replace llvm::error_code with std::error_code.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210781 91177308-0d34-0410-b5e6-96231b3b80d8
Don't import error_code into the lld namespace.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210785 91177308-0d34-0410-b5e6-96231b3b80d8
[Mips] Make exe-dynamic.test test case independent from external input files.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210796 91177308-0d34-0410-b5e6-96231b3b80d8
Uses #include "..." instead of #include <...> for llvm headers.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210799 91177308-0d34-0410-b5e6-96231b3b80d8
Run llvm/utils/sort_includes.py in a few files.

This will reduce the noise in a followup patch.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210800 91177308-0d34-0410-b5e6-96231b3b80d8
include system_error directly.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210801 91177308-0d34-0410-b5e6-96231b3b80d8
Refer to error_code with an std prefix.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210820 91177308-0d34-0410-b5e6-96231b3b80d8
More prefixing of error_code.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210831 91177308-0d34-0410-b5e6-96231b3b80d8
Remove a 'using std::error_code' I missed in the previous pass.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210878 91177308-0d34-0410-b5e6-96231b3b80d8
[Mips] Make exe-fileheader.test test case independent from external input files.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210893 91177308-0d34-0410-b5e6-96231b3b80d8
Remove unused and odd code.

This code was never being used and any use of it would look fairly strange.
For example, it would try to map a NativeReaderError::file_malformed to
std::errc::invalid_argument.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210913 91177308-0d34-0410-b5e6-96231b3b80d8
Update for llvm api change.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210919 91177308-0d34-0410-b5e6-96231b3b80d8
llvm::sys::SwapByteOrder() renamed to llvm::sys::getSwappedBytes()

Further to this, llvm::sys::swapByteOrder() will be added, acting in-place



git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210974 91177308-0d34-0410-b5e6-96231b3b80d8
Left two files out of the previous commit

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210975 91177308-0d34-0410-b5e6-96231b3b80d8
[Mips] Make exe-got.test test case independent from external input files.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210977 91177308-0d34-0410-b5e6-96231b3b80d8
Using llvm::sys::swapByteOrder() for the common case of byte-swapping a value in place

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210979 91177308-0d34-0410-b5e6-96231b3b80d8
[Mips] Make gp-sym-1.test test case independent from external input files.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210981 91177308-0d34-0410-b5e6-96231b3b80d8