From 5c792faa0e5560bc148c973f3df658eb3bb2061e Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 12 Jun 2014 21:46:39 +0000 Subject: Don't use 'using std::error_code' in include/llvm. This should make sure that most new uses use the std prefix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210835 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/ExecutionEngine/JIT/JITTest.cpp | 1 + unittests/Support/FileOutputBufferTest.cpp | 1 + unittests/Support/LockFileManagerTest.cpp | 1 + unittests/Support/MemoryBufferTest.cpp | 1 + unittests/Support/MemoryTest.cpp | 1 + unittests/Support/Path.cpp | 1 + 6 files changed, 6 insertions(+) (limited to 'unittests') diff --git a/unittests/ExecutionEngine/JIT/JITTest.cpp b/unittests/ExecutionEngine/JIT/JITTest.cpp index 5eb52c6f01..f3b2b21c09 100644 --- a/unittests/ExecutionEngine/JIT/JITTest.cpp +++ b/unittests/ExecutionEngine/JIT/JITTest.cpp @@ -31,6 +31,7 @@ #include using namespace llvm; +using std::error_code; // This variable is intentionally defined differently in the statically-compiled // program from the IR input to the JIT to assert that the JIT doesn't use its diff --git a/unittests/Support/FileOutputBufferTest.cpp b/unittests/Support/FileOutputBufferTest.cpp index 2ce9e71f85..aec3524bb4 100644 --- a/unittests/Support/FileOutputBufferTest.cpp +++ b/unittests/Support/FileOutputBufferTest.cpp @@ -16,6 +16,7 @@ using namespace llvm; using namespace llvm::sys; +using std::error_code; #define ASSERT_NO_ERROR(x) \ if (error_code ASSERT_NO_ERROR_ec = x) { \ diff --git a/unittests/Support/LockFileManagerTest.cpp b/unittests/Support/LockFileManagerTest.cpp index 93fa10bee0..3d6357c291 100644 --- a/unittests/Support/LockFileManagerTest.cpp +++ b/unittests/Support/LockFileManagerTest.cpp @@ -14,6 +14,7 @@ #include using namespace llvm; +using std::error_code; namespace { diff --git a/unittests/Support/MemoryBufferTest.cpp b/unittests/Support/MemoryBufferTest.cpp index b7d0c206e8..7802537c35 100644 --- a/unittests/Support/MemoryBufferTest.cpp +++ b/unittests/Support/MemoryBufferTest.cpp @@ -17,6 +17,7 @@ #include "gtest/gtest.h" using namespace llvm; +using std::error_code; namespace { diff --git a/unittests/Support/MemoryTest.cpp b/unittests/Support/MemoryTest.cpp index f85f3dc312..70f8b24dc0 100644 --- a/unittests/Support/MemoryTest.cpp +++ b/unittests/Support/MemoryTest.cpp @@ -14,6 +14,7 @@ using namespace llvm; using namespace sys; +using std::error_code; namespace { diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp index f5fb81539b..09042113c0 100644 --- a/unittests/Support/Path.cpp +++ b/unittests/Support/Path.cpp @@ -20,6 +20,7 @@ using namespace llvm; using namespace llvm::sys; +using std::error_code; #define ASSERT_NO_ERROR(x) \ if (error_code ASSERT_NO_ERROR_ec = x) { \ -- cgit v1.2.3