Use std::error_code instead of llvm::error_code.
[oota-llvm.git] / lib / Support / LockFileManager.cpp
index 05e75cff1acb533377dda88b1ccacfa27bb7bb57..2b7fc812d51972700ee0fcceb989609b03384a5c 100644 (file)
@@ -114,7 +114,7 @@ LockFileManager::LockFileManager(StringRef FileName)
     if (Out.has_error()) {
       // We failed to write out PID, so make up an excuse, remove the
       // unique lock file, and fail.
-      Error = make_error_code(errc::no_space_on_device);
+      Error = make_error_code(std::errc::no_space_on_device);
       sys::fs::remove(UniqueLockFileName.c_str());
       return;
     }
@@ -127,7 +127,7 @@ LockFileManager::LockFileManager(StringRef FileName)
     if (!EC)
       return;
 
-    if (EC != errc::file_exists) {
+    if (EC != std::errc::file_exists) {
       Error = EC;
       return;
     }