Add comment about exporting clang::driver::ArgStringList,

as suggested by Jordan on IRC. Also, use the unqualified name
in Job.cpp.

And while we're here, refer to StringRef with the unqualified
name, because we have a using directive for that too.

llvm-svn: 190909
This commit is contained in:
Hans Wennborg 2013-09-18 00:41:15 +00:00
parent c106fdafdd
commit e693e8432e
2 changed files with 3 additions and 2 deletions

View File

@ -24,6 +24,7 @@ class Action;
class Command;
class Tool;
// Re-export this as clang::driver::ArgStringList.
using llvm::opt::ArgStringList;
class Job {

View File

@ -22,7 +22,7 @@ Job::~Job() {}
Command::Command(const Action &_Source, const Tool &_Creator,
const char *_Executable,
const llvm::opt::ArgStringList &_Arguments)
const ArgStringList &_Arguments)
: Job(CommandClass), Source(_Source), Creator(_Creator),
Executable(_Executable), Arguments(_Arguments) {}
@ -113,7 +113,7 @@ void Command::Print(raw_ostream &OS, const char *Terminator, bool Quote,
OS << Terminator;
}
int Command::Execute(const llvm::StringRef **Redirects, std::string *ErrMsg,
int Command::Execute(const StringRef **Redirects, std::string *ErrMsg,
bool *ExecutionFailed) const {
SmallVector<const char*, 128> Argv;
Argv.push_back(Executable);