aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/System
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-07-18 21:43:40 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-07-18 21:43:40 +0000
commit9dc87305db90a92a216041b928630b64878cf222 (patch)
tree6d765108dfd00e5c36a7ffc67bc8ce2046182643 /include/llvm/System
parent3140619c63d205d79b8eac1d88afa918981fa258 (diff)
downloadexternal_llvm-9dc87305db90a92a216041b928630b64878cf222.zip
external_llvm-9dc87305db90a92a216041b928630b64878cf222.tar.gz
external_llvm-9dc87305db90a92a216041b928630b64878cf222.tar.bz2
Add a Program::GetPid() method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76341 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
-rw-r--r--include/llvm/System/Program.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/System/Program.h b/include/llvm/System/Program.h
index 6b4c3a20..177fa7c 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