diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-11 17:37:01 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-11 17:37:01 +0000 |
commit | 5625dec232f24215f4852e89115aba871258b206 (patch) | |
tree | 5b8c10d5cbd09dc912c976258e9c4e7c600680dd /llvm/lib/System/Win32/Program.cpp | |
parent | cc6037f8e68f14868288b249b4841bacc0f5e115 (diff) | |
download | bcm5719-llvm-5625dec232f24215f4852e89115aba871258b206.tar.gz bcm5719-llvm-5625dec232f24215f4852e89115aba871258b206.zip |
Rename Path::get -> Path::toString
llvm-svn: 18802
Diffstat (limited to 'llvm/lib/System/Win32/Program.cpp')
-rw-r--r-- | llvm/lib/System/Win32/Program.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/System/Win32/Program.cpp b/llvm/lib/System/Win32/Program.cpp index ddc939620ea..d6bd86ad2d3 100644 --- a/llvm/lib/System/Win32/Program.cpp +++ b/llvm/lib/System/Win32/Program.cpp @@ -71,7 +71,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"; // Windows wants a command line, not an array of args, to pass to the new // process. We have to concatenate them all, while quoting the args that @@ -124,10 +124,11 @@ Program::ExecuteAndWait(const Path& path, PROCESS_INFORMATION pi; memset(&pi, 0, sizeof(pi)); - if (!CreateProcess(path.get().c_str(), command, NULL, NULL, FALSE, 0, + if (!CreateProcess(path.c_str(), command, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) { - ThrowError(std::string("Couldn't execute program '") + path.get() + "'"); + ThrowError(std::string("Couldn't execute program '") + + path.toString() + "'"); } // Wait for it to terminate. @@ -142,7 +143,8 @@ Program::ExecuteAndWait(const Path& path, CloseHandle(pi.hThread); if (!rc) - ThrowError(std::string("Failed getting status for program '") + path.get() + "'"); + ThrowError(std::string("Failed getting status for program '") + + path.toString() + "'"); return status; } |