blob: 43495c463aa2e1e56a1a1da030ca6912a4947776 [file] [log] [blame]
Mikhail Glushenkovb90cd832008-05-06 16:34:12 +00001//===--- 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
20namespace 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