Delete AccessesArgumentsAndGlobals, which was unused.
[oota-llvm.git] / include / llvm / CompilerDriver / Action.h
index 70141393ce1f924068ec9b850a20c2bba11d89cb..f2b79655f60f01221d0685a7d9647f4934dddb70 100644 (file)
@@ -34,12 +34,16 @@ namespace llvmc {
     std::string OutFile_;
 
   public:
-    Action (const std::string& C, const StrVector& A,
-            bool S, const std::string& O)
-      : Command_(C), Args_(A), StopCompilation_(S), OutFile_(O)
-    {}
-
-    /// Execute - Executes the represented action.
+    void Construct (const std::string& C, const StrVector& A,
+                    bool S, const std::string& O) {
+      Command_ = C;
+      Args_ = A;
+      StopCompilation_ = S;
+      OutFile_ = O;
+    }
+    bool IsConstructed () { return (Command_.size() != 0);}
+
+    /// Execute - Executes the command. Returns -1 on error.
     int Execute () const;
     bool StopCompilation () const { return StopCompilation_; }
     const std::string& OutFile() { return OutFile_; }