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 | 0dfef16716fc2c26777f8404c8fa073cd42bc57e (patch) | |
tree | 98e897e8de0f2f6c8c1d2ef9c4041cb9a1362ef8 /include | |
parent | dce584a533e962394daa5fa66065ddb344467c47 (diff) | |
download | external_llvm-0dfef16716fc2c26777f8404c8fa073cd42bc57e.zip external_llvm-0dfef16716fc2c26777f8404c8fa073cd42bc57e.tar.gz external_llvm-0dfef16716fc2c26777f8404c8fa073cd42bc57e.tar.bz2 |
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')
-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 b200edd..6799562 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 |