summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Win32/Program.inc
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-10-29 16:54:25 +0000
committerDan Gohman <gohman@apple.com>2010-10-29 16:54:25 +0000
commitfc81579b5e10b1c627c1bdbd9d1d035868cf11ee (patch)
treebc10e40064cbd10a57f8aa991b420046046e4f02 /llvm/lib/System/Win32/Program.inc
parent305ec65927b64b9b35406c6680d0751df29b36c2 (diff)
downloadbcm5719-llvm-fc81579b5e10b1c627c1bdbd9d1d035868cf11ee.tar.gz
bcm5719-llvm-fc81579b5e10b1c627c1bdbd9d1d035868cf11ee.zip
Make Program::Wait differentiate execution failure due to the file
being not found from the file being not executable. llvm-svn: 117664
Diffstat (limited to 'llvm/lib/System/Win32/Program.inc')
-rw-r--r--llvm/lib/System/Win32/Program.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/System/Win32/Program.inc b/llvm/lib/System/Win32/Program.inc
index ea1b5a6a069..b55aa2fa80f 100644
--- a/llvm/lib/System/Win32/Program.inc
+++ b/llvm/lib/System/Win32/Program.inc
@@ -337,7 +337,8 @@ Program::Execute(const Path& path,
}
int
-Program::Wait(unsigned secondsToWait,
+Program::Wait(const Path &path,
+ unsigned secondsToWait,
std::string* ErrMsg) {
if (Data_ == 0) {
MakeErrMsg(ErrMsg, "Process not started!");
OpenPOWER on IntegriCloud