projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove windows_error.
[oota-llvm.git]
/
lib
/
Support
/
Windows
/
Process.inc
diff --git
a/lib/Support/Windows/Process.inc
b/lib/Support/Windows/Process.inc
index 006bd8008447ef2525fe1f29299bb1ba09dd920b..9707cf103f22b66fdfab6a757ec0fb73a2899e78 100644
(file)
--- a/
lib/Support/Windows/Process.inc
+++ b/
lib/Support/Windows/Process.inc
@@
-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 *>,