[llvm-commits] [PATCH 2/2] Add a Program::GetPid() method.
Mikhail Glushenkov
foldr at codedgers.com
Fri Jul 17 17:58:20 PDT 2009
---
include/llvm/System/Program.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/include/llvm/System/Program.h b/include/llvm/System/Program.h
index 6b4c3a2..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
--
1.6.3.3
More information about the llvm-commits
mailing list