Rename StringVector to StrVector (to be consistent with LLVMCConfigurationEmitter...
authorMikhail Glushenkov <foldr@codedgers.com>
Fri, 30 May 2008 06:17:29 +0000 (06:17 +0000)
committerMikhail Glushenkov <foldr@codedgers.com>
Fri, 30 May 2008 06:17:29 +0000 (06:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51741 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvmc2/Action.cpp
tools/llvmc2/Action.h

index 80531c0806a7f1f4cdb9ee062ec5d1901c1bf1c2..183dd813b411675dc64d20d05aff63f92efcfa01 100644 (file)
@@ -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;
index 0f3f0bd26b6d6a56a2bce5d6e087c435dff55ce9..c3b31d4e5589903588623eb4e80a07a0e52251e2 100644 (file)
@@ -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)
     {}