remove SectionFlags::Small: it is only used on Xcore, and we'll find
[oota-llvm.git] / include / llvm / CompilerDriver / Action.h
index c3b31d4e5589903588623eb4e80a07a0e52251e2..70141393ce1f924068ec9b850a20c2bba11d89cb 100644 (file)
@@ -11,8 +11,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_TOOLS_LLVMC2_ACTION_H
-#define LLVM_TOOLS_LLVMC2_ACTION_H
+#ifndef LLVM_INCLUDE_COMPILER_DRIVER_ACTION_H
+#define LLVM_INCLUDE_COMPILER_DRIVER_ACTION_H
 
 #include <string>
 #include <vector>
@@ -27,16 +27,24 @@ namespace llvmc {
     std::string Command_;
     /// Args_ - Command arguments. Stdout redirection ("> file") is allowed.
     std::vector<std::string> Args_;
+    /// StopCompilation_ - Should we stop compilation after executing
+    /// this action?
+    bool StopCompilation_;
+    /// OutFile_ - The output file name.
+    std::string OutFile_;
+
   public:
-    Action() {}
-    Action (const std::string& C, const StrVector& A)
-      : Command_(C), Args_(A)
+    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.
-    int Execute() const;
+    int Execute () const;
+    bool StopCompilation () const { return StopCompilation_; }
+    const std::string& OutFile() { return OutFile_; }
   };
 
 }
 
-#endif // LLVM_TOOLS_LLVMC2_ACTION_H
+#endif // LLVM_INCLUDE_COMPILER_DRIVER_ACTION_H