diff options
| author | Hans Wennborg <hans@hanshq.net> | 2013-09-18 00:21:51 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2013-09-18 00:21:51 +0000 |
| commit | 0daa1225c6a70fed6200c57523c1499ad9525b83 (patch) | |
| tree | 64d25d9759f9465987e5125245f3ba6585a5fbc5 | |
| parent | 9b7c8a378a51af01c652d424a256c1cabf8c59dd (diff) | |
| download | bcm5719-llvm-0daa1225c6a70fed6200c57523c1499ad9525b83.tar.gz bcm5719-llvm-0daa1225c6a70fed6200c57523c1499ad9525b83.zip | |
Revert r190902 and r190906
The first one broke the build, and the latter one made it worse.
llvm-svn: 190907
| -rw-r--r-- | clang/include/clang/Driver/Job.h | 9 | ||||
| -rw-r--r-- | clang/lib/Driver/Job.cpp | 5 |
2 files changed, 7 insertions, 7 deletions
diff --git a/clang/include/clang/Driver/Job.h b/clang/include/clang/Driver/Job.h index 7b91e4e9e48..161fda19b28 100644 --- a/clang/include/clang/Driver/Job.h +++ b/clang/include/clang/Driver/Job.h @@ -24,8 +24,7 @@ class Action; class Command; class Tool; -// Users of this class will use clang::driver::ArgStringList. -typedef llvm::opt::ArgStringList ArgStringList; +using llvm::opt::ArgStringList; class Job { public: @@ -68,11 +67,11 @@ class Command : public Job { /// The list of program arguments (not including the implicit first /// argument, which will be the executable). - ArgStringList Arguments; + llvm::opt::ArgStringList Arguments; public: Command(const Action &_Source, const Tool &_Creator, const char *_Executable, - const ArgStringList &_Arguments); + const llvm::opt::ArgStringList &_Arguments); virtual void Print(llvm::raw_ostream &OS, const char *Terminator, bool Quote, bool CrashReport = false) const; @@ -86,7 +85,7 @@ public: /// getCreator - Return the Tool which caused the creation of this job. const Tool &getCreator() const { return Creator; } - const ArgStringList &getArguments() const { return Arguments; } + const llvm::opt::ArgStringList &getArguments() const { return Arguments; } static bool classof(const Job *J) { return J->getKind() == CommandClass; diff --git a/clang/lib/Driver/Job.cpp b/clang/lib/Driver/Job.cpp index 4e4c664c8f7..0a783eb93b1 100644 --- a/clang/lib/Driver/Job.cpp +++ b/clang/lib/Driver/Job.cpp @@ -21,7 +21,8 @@ using llvm::StringRef; Job::~Job() {} Command::Command(const Action &_Source, const Tool &_Creator, - const char *_Executable, const ArgStringList &_Arguments) + const char *_Executable, + const llvm::opt::ArgStringList &_Arguments) : Job(CommandClass), Source(_Source), Creator(_Creator), Executable(_Executable), Arguments(_Arguments) {} @@ -112,7 +113,7 @@ void Command::Print(raw_ostream &OS, const char *Terminator, bool Quote, OS << Terminator; } -int Command::Execute(const StringRef **Redirects, std::string *ErrMsg, +int Command::Execute(const llvm::StringRef **Redirects, std::string *ErrMsg, bool *ExecutionFailed) const { SmallVector<const char*, 128> Argv; Argv.push_back(Executable); |

