[llvm-commits] [llvm] r76341 - /llvm/trunk/include/llvm/System/Program.h
Mikhail Glushenkov
foldr at codedgers.com
Sat Jul 18 14:43:40 PDT 2009
Author: foldr
Date: Sat Jul 18 16:43:40 2009
New Revision: 76341
URL: http://llvm.org/viewvc/llvm-project?rev=76341&view=rev
Log:
Add a Program::GetPid() method.
Modified:
llvm/trunk/include/llvm/System/Program.h
Modified: llvm/trunk/include/llvm/System/Program.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/System/Program.h?rev=76341&r1=76340&r2=76341&view=diff
==============================================================================
--- llvm/trunk/include/llvm/System/Program.h (original)
+++ llvm/trunk/include/llvm/System/Program.h Sat Jul 18 16:43:40 2009
@@ -42,6 +42,9 @@
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
More information about the llvm-commits
mailing list