diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-30 06:17:29 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-30 06:17:29 +0000 |
commit | 73d708b82cc8a836dce659246c0e0b967a3eeb44 (patch) | |
tree | a65583baece367d984f56adb01d73a153d5196b9 | |
parent | b2ec0b425b3265bd226259fadbf5a18d7d07bb92 (diff) | |
download | bcm5719-llvm-73d708b82cc8a836dce659246c0e0b967a3eeb44.tar.gz bcm5719-llvm-73d708b82cc8a836dce659246c0e0b967a3eeb44.zip |
Rename StringVector to StrVector (to be consistent with LLVMCConfigurationEmitter.cpp).
llvm-svn: 51741
-rw-r--r-- | llvm/tools/llvmc2/Action.cpp | 6 | ||||
-rw-r--r-- | llvm/tools/llvmc2/Action.h | 7 |
2 files changed, 6 insertions, 7 deletions
diff --git a/llvm/tools/llvmc2/Action.cpp b/llvm/tools/llvmc2/Action.cpp index 80531c0806a..183dd813b41 100644 --- a/llvm/tools/llvmc2/Action.cpp +++ b/llvm/tools/llvmc2/Action.cpp @@ -1,4 +1,4 @@ -//===--- Tools.h - The LLVM Compiler Driver ---------------------*- C++ -*-===// +//===--- Action.cpp - The LLVM Compiler Driver ------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -26,7 +26,7 @@ extern cl::opt<bool> VerboseMode; namespace { int ExecuteProgram(const std::string& name, - const StringVector& args) { + const StrVector& args) { sys::Path prog = sys::Program::FindProgramByName(name); if (prog.isEmpty()) @@ -42,7 +42,7 @@ namespace { 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; diff --git a/llvm/tools/llvmc2/Action.h b/llvm/tools/llvmc2/Action.h index 0f3f0bd26b6..c3b31d4e558 100644 --- a/llvm/tools/llvmc2/Action.h +++ b/llvm/tools/llvmc2/Action.h @@ -1,4 +1,4 @@ -//===--- Tools.h - The LLVM Compiler Driver ---------------------*- C++ -*-===// +//===--- Action.h - The LLVM Compiler Driver --------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -19,7 +19,7 @@ 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 { @@ -29,8 +29,7 @@ namespace llvmc { 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) {} |