From 66ef5d3cd6c343f1be29c863b94156ebddbc2802 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 8 Jun 2018 15:16:25 +0000 Subject: 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 --- llvm/lib/Support/Unix/Program.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/Support/Unix/Program.inc') 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; } -- cgit v1.2.3