Code reorg
[oota-llvm.git] / tools / llvmc2 / Action.h
1 //===--- Tools.h - The LLVM Compiler Driver ---------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open
6 // Source License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 //  Action - encapsulates a single shell command.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef LLVM_TOOLS_LLVMC2_ACTION_H
15 #define LLVM_TOOLS_LLVMC2_ACTION_H
16
17 #include <string>
18 #include <vector>
19
20 namespace llvmcc {
21
22   class Action {
23     std::string Command_;
24     std::vector<std::string> Args_;
25   public:
26     Action (std::string const& C,
27             std::vector<std::string> const& A)
28       : Command_(C), Args_(A)
29     {}
30
31     int Execute();
32   };
33
34 }
35
36 #endif // LLVM_TOOLS_LLVMC2_ACTION_H