aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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