aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/System/Program.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/System/Program.h')
-rw-r--r--include/llvm/System/Program.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/include/llvm/System/Program.h b/include/llvm/System/Program.h
index 6799562726..b200eddc22 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