forked from OSchip/llvm-project
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:
parent
c106fdafdd
commit
e693e8432e
|
@ -24,6 +24,7 @@ class Action;
|
|||
class Command;
|
||||
class Tool;
|
||||
|
||||
// Re-export this as clang::driver::ArgStringList.
|
||||
using llvm::opt::ArgStringList;
|
||||
|
||||
class Job {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue