Fix VC++ breakage

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22353 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jeff Cohen
2005-07-08 02:48:42 +00:00
parent 4607b54877
commit edb9d6bc72
3 changed files with 10 additions and 13 deletions

View File

@@ -31,9 +31,9 @@ Program::FindProgramByName(const std::string& progName) {
if (progName.length() == 0) // no program
return Path();
Path temp;
if (!temp.setFile(progName)) // invalid name
if (!temp.set(progName)) // invalid name
return Path();
if (temp.executable()) // already executable as is
if (temp.canExecute()) // already executable as is
return temp;
// At this point, the file name is valid and its not executable.
@@ -101,7 +101,7 @@ Program::ExecuteAndWait(const Path& path,
const char** envp,
const Path** redirects,
unsigned secondsToWait) {
if (!path.executable())
if (!path.canExecute())
throw path.toString() + " is not executable";
// Windows wants a command line, not an array of args, to pass to the new