Don't use 'using std::error_code' in include/llvm.
[oota-llvm.git] / include / llvm / Support / LockFileManager.h
index dca28fa878f474232d6b78fdf803e57e2d2e55df..61c65dabae3c9d785d59f201e55f7441c5ed116e 100644 (file)
@@ -16,7 +16,6 @@
 #include <utility> // for std::pair
 
 namespace llvm {
-using std::error_code;
 /// \brief Class that manages the creation of a lock file to aid
 /// implicit coordination between different processes.
 ///
@@ -56,7 +55,7 @@ private:
   SmallString<128> UniqueLockFileName;
 
   Optional<std::pair<std::string, int> > Owner;
-  Optional<error_code> Error;
+  Optional<std::error_code> Error;
 
   LockFileManager(const LockFileManager &) LLVM_DELETED_FUNCTION;
   LockFileManager &operator=(const LockFileManager &) LLVM_DELETED_FUNCTION;