summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/SystemUtils.cpp
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2004-06-02 00:09:46 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2004-06-02 00:09:46 +0000
commit140f26ea4627f0660f2d242c2207ac2b227d6356 (patch)
tree1202fdc7c93175d23c178f25509fd64d08892c6c /llvm/lib/Support/SystemUtils.cpp
parent7f6a0343fc263564bb5f55ad0d2ff753c1c84124 (diff)
downloadbcm5719-llvm-140f26ea4627f0660f2d242c2207ac2b227d6356.tar.gz
bcm5719-llvm-140f26ea4627f0660f2d242c2207ac2b227d6356.zip
Fix spelling, trim empty space, tighten up function header comment.
llvm-svn: 13940
Diffstat (limited to 'llvm/lib/Support/SystemUtils.cpp')
-rw-r--r--llvm/lib/Support/SystemUtils.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/llvm/lib/Support/SystemUtils.cpp b/llvm/lib/Support/SystemUtils.cpp
index c0fb7720ca8..076e3a7b933 100644
--- a/llvm/lib/Support/SystemUtils.cpp
+++ b/llvm/lib/Support/SystemUtils.cpp
@@ -191,13 +191,8 @@ int llvm::RunProgramWithTimeout(const std::string &ProgramPath,
}
-//
-// Function: ExecWait ()
-//
-// Description:
-// This function executes a program with the specified arguments and
-// environment. It then waits for the progarm to termiante and then returns
-// to the caller.
+// ExecWait - executes a program with the specified arguments and environment.
+// It then waits for the progarm to termiante and then returns to the caller.
//
// Inputs:
// argv - The arguments to the program as an array of C strings. The first
@@ -230,10 +225,8 @@ int llvm::RunProgramWithTimeout(const std::string &ProgramPath,
int llvm::ExecWait(const char * const old_argv[],
const char * const old_envp[]) {
#ifdef HAVE_SYS_WAIT_H
- //
// Create local versions of the parameters that can be passed into execve()
// without creating const problems.
- //
char ** const argv = (char ** const) old_argv;
char ** const envp = (char ** const) old_envp;
@@ -256,7 +249,7 @@ int llvm::ExecWait(const char * const old_argv[],
break;
}
- // Parent process: Wait for the child process to termiante.
+ // Parent process: Wait for the child process to terminate.
int status;
if ((wait (&status)) == -1)
return 1;
OpenPOWER on IntegriCloud