diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-22 04:44:56 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-22 04:44:56 +0000 |
commit | 57d6903deae135ab39bf7d0e86ffae4029a938bd (patch) | |
tree | 98e897e8de0f2f6c8c1d2ef9c4041cb9a1362ef8 /include/llvm/System | |
parent | 58c661ced16cd07c796bc867b1db0997c15db69f (diff) | |
download | llvm-57d6903deae135ab39bf7d0e86ffae4029a938bd.tar.gz llvm-57d6903deae135ab39bf7d0e86ffae4029a938bd.tar.bz2 llvm-57d6903deae135ab39bf7d0e86ffae4029a938bd.tar.xz |
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
Diffstat (limited to 'include/llvm/System')
-rw-r--r-- | include/llvm/System/Program.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/llvm/System/Program.h b/include/llvm/System/Program.h index b200eddc22..6799562726 100644 --- a/include/llvm/System/Program.h +++ b/include/llvm/System/Program.h @@ -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 |