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
commit90e3258be1a543f13cb60380c1e8340c6e40c55a (patch)
tree6d765108dfd00e5c36a7ffc67bc8ce2046182643 /include/llvm/System
parentb23120bed699606f955ed0c07a3b7051c110379f (diff)
downloadexternal_llvm-90e3258be1a543f13cb60380c1e8340c6e40c55a.zip
external_llvm-90e3258be1a543f13cb60380c1e8340c6e40c55a.tar.gz
external_llvm-90e3258be1a543f13cb60380c1e8340c6e40c55a.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