summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-12 21:46:39 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-12 21:46:39 +0000
commit5c792faa0e5560bc148c973f3df658eb3bb2061e (patch)
tree6ede225c2e59359a60804bb1d823f9db9072892a /unittests
parent7418e1f4bd5a4bda32af18f46ff2837221d12d5c (diff)
downloadllvm-5c792faa0e5560bc148c973f3df658eb3bb2061e.tar.gz
llvm-5c792faa0e5560bc148c973f3df658eb3bb2061e.tar.bz2
llvm-5c792faa0e5560bc148c973f3df658eb3bb2061e.tar.xz
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
Diffstat (limited to 'unittests')
-rw-r--r--unittests/ExecutionEngine/JIT/JITTest.cpp1
-rw-r--r--unittests/Support/FileOutputBufferTest.cpp1
-rw-r--r--unittests/Support/LockFileManagerTest.cpp1
-rw-r--r--unittests/Support/MemoryBufferTest.cpp1
-rw-r--r--unittests/Support/MemoryTest.cpp1
-rw-r--r--unittests/Support/Path.cpp1
6 files changed, 6 insertions, 0 deletions
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 <vector>
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 <memory>
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) { \