2008-03-23 08:57:20 +00:00
|
|
|
//===--- 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.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2008-05-06 16:34:12 +00:00
|
|
|
// Action - encapsulates a single shell command.
|
2008-03-23 08:57:20 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2008-05-06 16:34:12 +00:00
|
|
|
#ifndef LLVM_TOOLS_LLVMC2_ACTION_H
|
|
|
|
#define LLVM_TOOLS_LLVMC2_ACTION_H
|
2008-03-23 08:57:20 +00:00
|
|
|
|
2008-05-06 16:34:12 +00:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2008-03-23 08:57:20 +00:00
|
|
|
|
|
|
|
namespace llvmcc {
|
|
|
|
|
2008-05-06 16:34:12 +00:00
|
|
|
class Action {
|
|
|
|
std::string Command_;
|
|
|
|
std::vector<std::string> Args_;
|
|
|
|
public:
|
|
|
|
Action (std::string const& C,
|
|
|
|
std::vector<std::string> const& A)
|
|
|
|
: Command_(C), Args_(A)
|
|
|
|
{}
|
|
|
|
|
|
|
|
int Execute();
|
|
|
|
};
|
2008-03-23 08:57:20 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2008-05-06 16:34:12 +00:00
|
|
|
#endif // LLVM_TOOLS_LLVMC2_ACTION_H
|