Driver: Rename Command::Argv to Command::Arguments to make it clearer
that this does not include the implicit first argument (the executable
name).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67172 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/clang/Driver/Job.h b/include/clang/Driver/Job.h
index 1db5051..8a7aa1a 100644
--- a/include/clang/Driver/Job.h
+++ b/include/clang/Driver/Job.h
@@ -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;
diff --git a/lib/Driver/Job.cpp b/lib/Driver/Job.cpp
index 3cc8b29..1efc38a 100644
--- a/lib/Driver/Job.cpp
+++ b/lib/Driver/Job.cpp
@@ -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) {}