Update CreateMalloc so that its callers specify the size to allocate:
[oota-llvm.git] / include / llvm / System / Program.h
index f6fe7946220ccbdf30d04d01aaa33d66147d5df5..679956272609647be6ea618855ef2a48a60b59ec 100644 (file)
@@ -32,6 +32,10 @@ namespace sys {
     /// Opaque handle for target specific data.
     void *Data_;
 
+    // Noncopyable.
+    Program(const Program& other);
+    Program& operator=(const Program& other);
+
     /// @name Methods
     /// @{
   public:
@@ -40,7 +44,7 @@ namespace sys {
     ~Program();
 
     /// Return process ID of this program.
-    unsigned GetPid();
+    unsigned GetPid() const;
 
     /// This function executes the program using the \p arguments provided.  The
     /// invoked program will inherit the stdin, stdout, and stderr file
@@ -93,8 +97,7 @@ namespace sys {
       ///< it doesn't.
       std::string* ErrMsg = 0 ///< If non-zero, provides a pointer to a string
       ///< instance in which error messages will be returned. If the string
-      ///< is non-empty upon return an error occurred while invoking the
-      ///< program.
+      ///< is non-empty upon return an error occurred while waiting.
       );
 
     /// This function terminates the program.
@@ -104,7 +107,7 @@ namespace sys {
     bool Kill
     ( std::string* ErrMsg = 0 ///< If non-zero, provides a pointer to a string
       ///< instance in which error messages will be returned. If the string
-      ///< is non-empty upon return an error occurred while invoking the
+      ///< is non-empty upon return an error occurred while killing the
       ///< program.
       );