Add a Program::GetPid() method.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76341 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Mikhail Glushenkov 2009-07-18 21:43:40 +00:00
parent 3140619c63
commit 9dc87305db

View 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