diff options
author | Paul Robinson <paul_robinson@playstation.sony.com> | 2015-11-23 17:34:20 +0000 |
---|---|---|
committer | Paul Robinson <paul_robinson@playstation.sony.com> | 2015-11-23 17:34:20 +0000 |
commit | af19bc3a9c4799263a5200be911bc9c49faad46b (patch) | |
tree | ef6292b586d4740a091a4c8ed4bcfe7e3a96bbd4 /llvm/lib/Support/Windows/Program.inc | |
parent | c61c08e618ae93c0a4586e20cf480ed1ac7bf7b6 (diff) | |
download | bcm5719-llvm-af19bc3a9c4799263a5200be911bc9c49faad46b.tar.gz bcm5719-llvm-af19bc3a9c4799263a5200be911bc9c49faad46b.zip |
Add Windows error code and tidy formatting for system errors.
Differential Revision: http://reviews.llvm.org/D14892
llvm-svn: 253888
Diffstat (limited to 'llvm/lib/Support/Windows/Program.inc')
-rw-r--r-- | llvm/lib/Support/Windows/Program.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/Windows/Program.inc b/llvm/lib/Support/Windows/Program.inc index e2a167c0a2b..d4e14ddc651 100644 --- a/llvm/lib/Support/Windows/Program.inc +++ b/llvm/lib/Support/Windows/Program.inc @@ -139,7 +139,7 @@ static HANDLE RedirectIO(const StringRef *path, int fd, std::string* ErrMsg) { FILE_ATTRIBUTE_NORMAL, NULL); if (h == INVALID_HANDLE_VALUE) { MakeErrMsg(ErrMsg, fname + ": Can't open file for " + - (fd ? "input: " : "output: ")); + (fd ? "input" : "output")); } return h; @@ -431,7 +431,7 @@ ProcessInfo sys::Wait(const ProcessInfo &PI, unsigned SecondsToWait, if (SecondsToWait) { if (!TerminateProcess(PI.ProcessHandle, 1)) { if (ErrMsg) - MakeErrMsg(ErrMsg, "Failed to terminate timed-out program."); + MakeErrMsg(ErrMsg, "Failed to terminate timed-out program"); // -2 indicates a crash or timeout as opposed to failure to execute. WaitResult.ReturnCode = -2; @@ -456,7 +456,7 @@ ProcessInfo sys::Wait(const ProcessInfo &PI, unsigned SecondsToWait, if (!rc) { SetLastError(err); if (ErrMsg) - MakeErrMsg(ErrMsg, "Failed getting status for program."); + MakeErrMsg(ErrMsg, "Failed getting status for program"); // -2 indicates a crash or timeout as opposed to failure to execute. WaitResult.ReturnCode = -2; |