diff options
author | Zachary Turner <zturner@google.com> | 2018-06-08 15:16:25 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2018-06-08 15:16:25 +0000 |
commit | 66ef5d3cd6c343f1be29c863b94156ebddbc2802 (patch) | |
tree | 85d2ac192aa1791709067906a40a014de2e3b1c2 /llvm/lib/Support/Unix/Program.inc | |
parent | 6edfecb88380862166c72e0ac5dbcaba6538ec58 (diff) | |
download | bcm5719-llvm-66ef5d3cd6c343f1be29c863b94156ebddbc2802.tar.gz bcm5719-llvm-66ef5d3cd6c343f1be29c863b94156ebddbc2802.zip |
Clean up some code in Program.
NFC here, this just raises some platform specific ifdef hackery
out of a class and creates proper platform-independent typedefs
for the relevant things. This allows these typedefs to be
reused in other places without having to reinvent this preprocessor
logic.
llvm-svn: 334294
Diffstat (limited to 'llvm/lib/Support/Unix/Program.inc')
-rw-r--r-- | llvm/lib/Support/Unix/Program.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Unix/Program.inc b/llvm/lib/Support/Unix/Program.inc index 03599c44b69..5344adf9c3f 100644 --- a/llvm/lib/Support/Unix/Program.inc +++ b/llvm/lib/Support/Unix/Program.inc @@ -237,6 +237,7 @@ static bool Execute(ProcessInfo &PI, StringRef Program, const char **Args, return !MakeErrMsg(ErrMsg, "posix_spawn failed", Err); PI.Pid = PID; + PI.Process = PID; return true; } @@ -300,6 +301,7 @@ static bool Execute(ProcessInfo &PI, StringRef Program, const char **Args, } PI.Pid = child; + PI.Process = child; return true; } |