Remove windows_error.
[oota-llvm.git] / lib / Support / Windows / Process.inc
index 006bd8008447ef2525fe1f29299bb1ba09dd920b..9707cf103f22b66fdfab6a757ec0fb73a2899e78 100644 (file)
@@ -179,6 +179,10 @@ Optional<std::string> Process::GetEnv(StringRef Name) {
   return std::string(Res.data());
 }
 
+static error_code windows_error(DWORD E) {
+  return error_code(E, system_category());
+}
+
 error_code
 Process::GetArgumentVector(SmallVectorImpl<const char *> &Args,
                            ArrayRef<const char *>,