aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/FileOutputBufferTest.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-13 03:20:08 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-13 03:20:08 +0000
commitc049c6574b93d774e572f13db1e8cea7bdb2d982 (patch)
tree3d400b852ce1e644e4d1164484f8c69a23f6a1f8 /llvm/unittests/Support/FileOutputBufferTest.cpp
parent4453e4294515bfc0cff16fdd7278f217d9efba4f (diff)
downloadllvm-c049c6574b93d774e572f13db1e8cea7bdb2d982.zip
llvm-c049c6574b93d774e572f13db1e8cea7bdb2d982.tar.gz
llvm-c049c6574b93d774e572f13db1e8cea7bdb2d982.tar.bz2
Remove the last uses of 'using std::error_code'
This finishes the transition to std::error_code. llvm-svn: 210877
Diffstat (limited to 'llvm/unittests/Support/FileOutputBufferTest.cpp')
-rw-r--r--llvm/unittests/Support/FileOutputBufferTest.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/unittests/Support/FileOutputBufferTest.cpp b/llvm/unittests/Support/FileOutputBufferTest.cpp
index aec3524..b086f1e 100644
--- a/llvm/unittests/Support/FileOutputBufferTest.cpp
+++ b/llvm/unittests/Support/FileOutputBufferTest.cpp
@@ -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) {