Revert "Get rid of GetProcessId in Win32/Program.inc.", this breaks

ExecuteAndWait.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82522 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar
2009-09-22 04:44:56 +00:00
parent 58c661ced1
commit 57d6903dea
3 changed files with 51 additions and 26 deletions

View File

@@ -29,18 +29,22 @@ namespace sys {
/// @since 1.4
/// @brief An abstraction for finding and executing programs.
class Program {
/// Opaque handle for target specific data.
void *Data_;
unsigned Pid_;
// Noncopyable.
Program(const Program& other);
Program& operator=(const Program& other);
/// @name Methods
/// @{
public:
Program() : Pid_(0) {}
~Program() {}
Program();
~Program();
/// Return process ID of this program.
unsigned GetPid() const { return Pid_; }
unsigned GetPid() const;
/// This function executes the program using the \p arguments provided. The
/// invoked program will inherit the stdin, stdout, and stderr file