summaryrefslogtreecommitdiff
path: root/lib/System/Win32/Program.inc
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-11 17:37:01 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-11 17:37:01 +0000
commit707a27cfa82292f14845ce9aa54b9f95cb23fcee (patch)
tree02ca43202cf6dc5d0db7f7eccac04d3840047fc0 /lib/System/Win32/Program.inc
parent5df6895f75cc0ae8aa42b4872da1af6ef29f17f4 (diff)
downloadllvm-707a27cfa82292f14845ce9aa54b9f95cb23fcee.tar.gz
llvm-707a27cfa82292f14845ce9aa54b9f95cb23fcee.tar.bz2
llvm-707a27cfa82292f14845ce9aa54b9f95cb23fcee.tar.xz
Rename Path::get -> Path::toString
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Win32/Program.inc')
-rw-r--r--lib/System/Win32/Program.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/System/Win32/Program.inc b/lib/System/Win32/Program.inc
index ddc939620e..d6bd86ad2d 100644
--- a/lib/System/Win32/Program.inc
+++ b/lib/System/Win32/Program.inc
@@ -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;
}