diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-11 00:14:15 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-11 00:14:15 +0000 |
| commit | 5ccfd5a48bf5d6e27ce0f38fac107d9095704767 (patch) | |
| tree | 3ccb7b879e901d06d346fd8f6c2d9175c1408e4f /llvm/lib/System/Unix/Program.cpp | |
| parent | eef4420578b93f4024275096908719fc458b4a03 (diff) | |
| download | bcm5719-llvm-5ccfd5a48bf5d6e27ce0f38fac107d9095704767.tar.gz bcm5719-llvm-5ccfd5a48bf5d6e27ce0f38fac107d9095704767.zip | |
Path::get -> Path::toString
llvm-svn: 18785
Diffstat (limited to 'llvm/lib/System/Unix/Program.cpp')
| -rw-r--r-- | llvm/lib/System/Unix/Program.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/llvm/lib/System/Unix/Program.cpp b/llvm/lib/System/Unix/Program.cpp index 18fcafeb4ea..ae53720d1d8 100644 --- a/llvm/lib/System/Unix/Program.cpp +++ b/llvm/lib/System/Unix/Program.cpp @@ -81,7 +81,7 @@ int Program::ExecuteAndWait(const Path& path, const std::vector<std::string>& args) { if (!path.executable()) - throw path.get() + " is not executable"; + throw path.toString() + " is not executable"; #ifdef HAVE_SYS_WAIT_H // Create local versions of the parameters that can be passed into execve() @@ -98,7 +98,8 @@ Program::ExecuteAndWait(const Path& path, switch (fork()) { // An error occured: Return to the caller. case -1: - ThrowErrno(std::string("Couldn't execute program '") + path.get() + "'"); + ThrowErrno(std::string("Couldn't execute program '") + path.toString() + + "'"); break; // Child process: Execute the program. @@ -116,13 +117,15 @@ Program::ExecuteAndWait(const Path& path, // Parent process: Wait for the child process to terminate. int status; if ((::wait (&status)) == -1) - ThrowErrno(std::string("Failed waiting for program '") + path.get() + "'"); + ThrowErrno(std::string("Failed waiting for program '") + path.toString() + + "'"); // If the program exited normally with a zero exit status, return success! if (WIFEXITED (status)) return WEXITSTATUS(status); else if (WIFSIGNALED(status)) - throw std::string("Program '") + path.get() + "' received terminating signal."; + throw std::string("Program '") + path.toString() + + "' received terminating signal."; else return 0; |

