projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3140619
)
Add a Program::GetPid() method.
author
Mikhail Glushenkov
<foldr@codedgers.com>
Sat, 18 Jul 2009 21:43:40 +0000
(21:43 +0000)
committer
Mikhail 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
patch
|
blob
|
history
diff --git
a/include/llvm/System/Program.h
b/include/llvm/System/Program.h
index 6b4c3a2062a678d976fb46c8e4db96063e78b07c..177fa7cf7ee779090a6ceb5c7dd04872f3a03b33 100644
(file)
--- 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