diff options
| author | Mikhail Glushenkov <foldr@codedgers.com> | 2009-09-15 03:39:45 +0000 |
|---|---|---|
| committer | Mikhail Glushenkov <foldr@codedgers.com> | 2009-09-15 03:39:45 +0000 |
| commit | 5083953c49cfb42b74a512d6b876340cdb958733 (patch) | |
| tree | acce5f7a1fd097c07638ff48bd12812c67ca321e /include/llvm/System | |
| parent | 4f21ba08e546e678bd6cc4c6efd66040507d8050 (diff) | |
| download | external_llvm-5083953c49cfb42b74a512d6b876340cdb958733.zip external_llvm-5083953c49cfb42b74a512d6b876340cdb958733.tar.gz external_llvm-5083953c49cfb42b74a512d6b876340cdb958733.tar.bz2 | |
Get rid of GetProcessId in Win32/Program.inc.
GetProcessId was introduced only in XP. As a bonus, this change makes Program
objects copyable, since Program is now basically a PID.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81826 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
| -rw-r--r-- | include/llvm/System/Program.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/include/llvm/System/Program.h b/include/llvm/System/Program.h index 6799562..b200edd 100644 --- a/include/llvm/System/Program.h +++ b/include/llvm/System/Program.h @@ -29,22 +29,18 @@ namespace sys { /// @since 1.4 /// @brief An abstraction for finding and executing programs. class Program { - /// Opaque handle for target specific data. - void *Data_; - // Noncopyable. - Program(const Program& other); - Program& operator=(const Program& other); + unsigned Pid_; /// @name Methods /// @{ public: - Program(); - ~Program(); + Program() : Pid_(0) {} + ~Program() {} /// Return process ID of this program. - unsigned GetPid() const; + unsigned GetPid() const { return Pid_; } /// This function executes the program using the \p arguments provided. The /// invoked program will inherit the stdin, stdout, and stderr file |
