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