-//===--- Tools.h - The LLVM Compiler Driver ---------------------*- C++ -*-===//
+//===--- Action.cpp - The LLVM Compiler Driver ------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
namespace {
int ExecuteProgram(const std::string& name,
- const StringVector& args) {
+ const StrVector& args) {
sys::Path prog = sys::Program::FindProgramByName(name);
if (prog.isEmpty())
argv.reserve((args.size()+2));
argv.push_back(name.c_str());
- for (StringVector::const_iterator B = args.begin(), E = args.end();
+ for (StrVector::const_iterator B = args.begin(), E = args.end();
B!=E; ++B) {
if (*B == ">") {
++B;
-//===--- Tools.h - The LLVM Compiler Driver ---------------------*- C++ -*-===//
+//===--- Action.h - The LLVM Compiler Driver --------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
namespace llvmc {
- typedef std::vector<std::string> StringVector;
+ typedef std::vector<std::string> StrVector;
/// Action - A class that encapsulates a single shell command.
class Action {
std::vector<std::string> Args_;
public:
Action() {}
- Action (const std::string& C,
- const StringVector& A)
+ Action (const std::string& C, const StrVector& A)
: Command_(C), Args_(A)
{}