From 9dc87305db90a92a216041b928630b64878cf222 Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov Date: Sat, 18 Jul 2009 21:43:40 +0000 Subject: [PATCH] Add a Program::GetPid() method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76341 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/System/Program.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/llvm/System/Program.h b/include/llvm/System/Program.h index 6b4c3a2062a..177fa7cf7ee 100644 --- a/include/llvm/System/Program.h +++ b/include/llvm/System/Program.h @@ -42,6 +42,9 @@ namespace sys { Program() : Pid_(0) {} + /// Return process ID of this program. + unsigned GetPid() { return Pid_; } + /// This function executes the program using the \p arguments provided. The /// invoked program will inherit the stdin, stdout, and stderr file /// descriptors, the environment and other configuration settings of the -- 2.11.0