aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CompilerDriver/Action.h
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2008-12-07 16:41:11 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2008-12-07 16:41:11 +0000
commitf915253dfcfbe772ee04872544a4f012c6f851be (patch)
tree37804c93f492340cbffe03d4f709e34d9e1d99e2 /include/llvm/CompilerDriver/Action.h
parent6290f5cac23399201f8785e5ca8b305e42a1342c (diff)
Use (actions) instead of option properties, support external options.
Also includes a major refactoring. See documentation for more information. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60656 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CompilerDriver/Action.h')
-rw-r--r--include/llvm/CompilerDriver/Action.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/include/llvm/CompilerDriver/Action.h b/include/llvm/CompilerDriver/Action.h
index c3b31d4e55..9cac0aa45b 100644
--- a/include/llvm/CompilerDriver/Action.h
+++ b/include/llvm/CompilerDriver/Action.h
@@ -27,14 +27,22 @@ 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_; }
};
}