mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-21 03:05:26 -04:00
Minor style fixes in lib/Support/**/Program.(inc|cpp).
No functional changes intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312646 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
+12
-12
@@ -23,20 +23,20 @@ using namespace sys;
|
||||
//=== independent code.
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
static bool Execute(ProcessInfo &PI, StringRef Program, const char **args,
|
||||
const char **env, const StringRef **Redirects,
|
||||
unsigned memoryLimit, std::string *ErrMsg);
|
||||
static bool Execute(ProcessInfo &PI, StringRef Program, const char **Args,
|
||||
const char **Env, const StringRef **Redirects,
|
||||
unsigned MemoryLimit, std::string *ErrMsg);
|
||||
|
||||
int sys::ExecuteAndWait(StringRef Program, const char **args, const char **envp,
|
||||
const StringRef **redirects, unsigned secondsToWait,
|
||||
unsigned memoryLimit, std::string *ErrMsg,
|
||||
int sys::ExecuteAndWait(StringRef Program, const char **Args, const char **Envp,
|
||||
const StringRef **Redirects, unsigned SecondsToWait,
|
||||
unsigned MemoryLimit, std::string *ErrMsg,
|
||||
bool *ExecutionFailed) {
|
||||
ProcessInfo PI;
|
||||
if (Execute(PI, Program, args, envp, redirects, memoryLimit, ErrMsg)) {
|
||||
if (Execute(PI, Program, Args, Envp, Redirects, MemoryLimit, ErrMsg)) {
|
||||
if (ExecutionFailed)
|
||||
*ExecutionFailed = false;
|
||||
ProcessInfo Result = Wait(
|
||||
PI, secondsToWait, /*WaitUntilTerminates=*/secondsToWait == 0, ErrMsg);
|
||||
PI, SecondsToWait, /*WaitUntilTerminates=*/SecondsToWait == 0, ErrMsg);
|
||||
return Result.ReturnCode;
|
||||
}
|
||||
|
||||
@@ -46,14 +46,14 @@ int sys::ExecuteAndWait(StringRef Program, const char **args, const char **envp,
|
||||
return -1;
|
||||
}
|
||||
|
||||
ProcessInfo sys::ExecuteNoWait(StringRef Program, const char **args,
|
||||
const char **envp, const StringRef **redirects,
|
||||
unsigned memoryLimit, std::string *ErrMsg,
|
||||
ProcessInfo sys::ExecuteNoWait(StringRef Program, const char **Args,
|
||||
const char **Envp, const StringRef **Redirects,
|
||||
unsigned MemoryLimit, std::string *ErrMsg,
|
||||
bool *ExecutionFailed) {
|
||||
ProcessInfo PI;
|
||||
if (ExecutionFailed)
|
||||
*ExecutionFailed = false;
|
||||
if (!Execute(PI, Program, args, envp, redirects, memoryLimit, ErrMsg))
|
||||
if (!Execute(PI, Program, Args, Envp, Redirects, MemoryLimit, ErrMsg))
|
||||
if (ExecutionFailed)
|
||||
*ExecutionFailed = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user