aboutsummaryrefslogtreecommitdiff
path: root/tools/llvmc2/Action.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/llvmc2/Action.h')
-rw-r--r--tools/llvmc2/Action.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/llvmc2/Action.h b/tools/llvmc2/Action.h
index 7aaf470ced..32d185545a 100644
--- a/tools/llvmc2/Action.h
+++ b/tools/llvmc2/Action.h
@@ -21,8 +21,11 @@ namespace llvmc {
typedef std::vector<std::string> StringVector;
+ /// Action - A class that encapsulates a single shell command.
class Action {
+ /// Command_ - The actual command (for example, 'ls').
std::string Command_;
+ /// Args_ - Command arguments. Stdout redirection is allowed.
std::vector<std::string> Args_;
public:
Action (const std::string& C,
@@ -30,6 +33,7 @@ namespace llvmc {
: Command_(C), Args_(A)
{}
+ /// Execute - Executes the represented action.
int Execute() const;
};