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, 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