[llvm-commits] [llvm] r51741 - in /llvm/trunk/tools/llvmc2: Action.cpp Action.h

Mikhail Glushenkov foldr at codedgers.com
Thu May 29 23:17:29 PDT 2008


Author: foldr
Date: Fri May 30 01:17:29 2008
New Revision: 51741

URL: http://llvm.org/viewvc/llvm-project?rev=51741&view=rev
Log:
Rename StringVector to StrVector (to be consistent with LLVMCConfigurationEmitter.cpp).

Modified:
    llvm/trunk/tools/llvmc2/Action.cpp
    llvm/trunk/tools/llvmc2/Action.h

Modified: llvm/trunk/tools/llvmc2/Action.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc2/Action.cpp?rev=51741&r1=51740&r2=51741&view=diff

==============================================================================
--- llvm/trunk/tools/llvmc2/Action.cpp (original)
+++ llvm/trunk/tools/llvmc2/Action.cpp Fri May 30 01:17:29 2008
@@ -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 @@
 
 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 @@
     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;

Modified: llvm/trunk/tools/llvmc2/Action.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc2/Action.h?rev=51741&r1=51740&r2=51741&view=diff

==============================================================================
--- llvm/trunk/tools/llvmc2/Action.h (original)
+++ llvm/trunk/tools/llvmc2/Action.h Fri May 30 01:17:29 2008
@@ -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 @@
     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)
     {}
 





More information about the llvm-commits mailing list