diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-11 03:58:34 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-11 03:58:34 +0000 |
commit | a813d608a943579804eb9f12c8ede2955bb3a777 (patch) | |
tree | d77b568b616cc527538721269ccdf1aa6283798d /llvm/lib/Support/Windows/Process.inc | |
parent | 6a9aae77d4bc6eb644c106fc79be6f59c53c5ba1 (diff) | |
download | bcm5719-llvm-a813d608a943579804eb9f12c8ede2955bb3a777.tar.gz bcm5719-llvm-a813d608a943579804eb9f12c8ede2955bb3a777.zip |
Remove windows_error.
MSVC doesn't seem to provide any is_error_code_enum enumeration for the
windows errors.
Fortunately very few places in llvm have to handle raw windows errors, so
we can just construct the corresponding error_code directly.
llvm-svn: 210631
Diffstat (limited to 'llvm/lib/Support/Windows/Process.inc')
-rw-r--r-- | llvm/lib/Support/Windows/Process.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Support/Windows/Process.inc b/llvm/lib/Support/Windows/Process.inc index 006bd800844..9707cf103f2 100644 --- a/llvm/lib/Support/Windows/Process.inc +++ b/llvm/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 *>, |