diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2009-07-18 21:43:40 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2009-07-18 21:43:40 +0000 |
commit | 4a913f1e215cbb9541faa1db37ea734fef6d0a7e (patch) | |
tree | a468170340f237c0d0714964d4cf6f5368012516 | |
parent | 36cb83202d3833f76778eab7a9481384113cab06 (diff) | |
download | bcm5719-llvm-4a913f1e215cbb9541faa1db37ea734fef6d0a7e.tar.gz bcm5719-llvm-4a913f1e215cbb9541faa1db37ea734fef6d0a7e.zip |
Add a Program::GetPid() method.
llvm-svn: 76341
-rw-r--r-- | llvm/include/llvm/System/Program.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/System/Program.h b/llvm/include/llvm/System/Program.h index 6b4c3a2062a..177fa7cf7ee 100644 --- a/llvm/include/llvm/System/Program.h +++ b/llvm/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 |