mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-09 22:24:37 +00:00
Remove the last uses of 'using std::error_code'
This finishes the transition to std::error_code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210877 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -16,14 +16,14 @@
|
||||
|
||||
using namespace llvm;
|
||||
using namespace llvm::sys;
|
||||
using std::error_code;
|
||||
|
||||
#define ASSERT_NO_ERROR(x) \
|
||||
if (error_code ASSERT_NO_ERROR_ec = x) { \
|
||||
errs() << #x ": did not return errc::success.\n" \
|
||||
<< "error number: " << ASSERT_NO_ERROR_ec.value() << "\n" \
|
||||
<< "error message: " << ASSERT_NO_ERROR_ec.message() << "\n"; \
|
||||
} else {}
|
||||
#define ASSERT_NO_ERROR(x) \
|
||||
if (std::error_code ASSERT_NO_ERROR_ec = x) { \
|
||||
errs() << #x ": did not return errc::success.\n" \
|
||||
<< "error number: " << ASSERT_NO_ERROR_ec.value() << "\n" \
|
||||
<< "error message: " << ASSERT_NO_ERROR_ec.message() << "\n"; \
|
||||
} else { \
|
||||
}
|
||||
|
||||
namespace {
|
||||
TEST(FileOutputBuffer, Test) {
|
||||
|
Reference in New Issue
Block a user