Add a Program::GetPid() method.
authorMikhail Glushenkov <foldr@codedgers.com>
Sat, 18 Jul 2009 21:43:40 +0000 (21:43 +0000)
committerMikhail Glushenkov <foldr@codedgers.com>
Sat, 18 Jul 2009 21:43:40 +0000 (21:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76341 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/System/Program.h

index 6b4c3a2062a678d976fb46c8e4db96063e78b07c..177fa7cf7ee779090a6ceb5c7dd04872f3a03b33 100644 (file)
@@ -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