[cfe-commits] r67172 - in /cfe/trunk: include/clang/Driver/Job.h lib/Driver/Job.cpp

Daniel Dunbar daniel at zuster.org
Tue Mar 17 23:13:38 PDT 2009


Author: ddunbar
Date: Wed Mar 18 01:13:37 2009
New Revision: 67172

URL: http://llvm.org/viewvc/llvm-project?rev=67172&view=rev
Log:
Driver: Rename Command::Argv to Command::Arguments to make it clearer
that this does not include the implicit first argument (the executable
name).

Modified:
    cfe/trunk/include/clang/Driver/Job.h
    cfe/trunk/lib/Driver/Job.cpp

Modified: cfe/trunk/include/clang/Driver/Job.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Job.h?rev=67172&r1=67171&r2=67172&view=diff

==============================================================================
--- cfe/trunk/include/clang/Driver/Job.h (original)
+++ cfe/trunk/include/clang/Driver/Job.h Wed Mar 18 01:13:37 2009
@@ -47,14 +47,18 @@
   /// Command - An executable path/name and argument vector to
   /// execute.
 class Command : public Job {
+  /// The executable to run.
   const char *Executable;
-  ArgStringList Argv;
+
+  /// The list of program arguments (not including the implicit first
+  /// argument, which will be the executable).
+  ArgStringList Arguments;
 
 public:
-  Command(const char *_Executable, const ArgStringList &_Argv);
+  Command(const char *_Executable, const ArgStringList &_Arguments);
 
   const char *getExecutable() const { return Executable; }
-  const ArgStringList &getArgv() const { return Argv; }
+  const ArgStringList &getArguments() const { return Arguments; }
 
   static bool classof(const Job *J) { 
     return J->getKind() == CommandClass; 

Modified: cfe/trunk/lib/Driver/Job.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Job.cpp?rev=67172&r1=67171&r2=67172&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/Job.cpp (original)
+++ cfe/trunk/lib/Driver/Job.cpp Wed Mar 18 01:13:37 2009
@@ -14,8 +14,8 @@
 
 Job::~Job() {}
 
-Command::Command(const char *_Executable, const ArgStringList &_Argv)
-  : Job(CommandClass), Executable(_Executable), Argv(_Argv) {
+Command::Command(const char *_Executable, const ArgStringList &_Arguments)
+  : Job(CommandClass), Executable(_Executable), Arguments(_Arguments) {
 }
 
 PipedJob::PipedJob() : Job(PipedJobClass) {}





More information about the cfe-commits mailing list