From: Simon Pilgrim Date: Fri, 12 Oct 2018 18:55:36 +0000 (+0000) Subject: Consistently make llvm::opt::ArgStringList usage explicit to try and appease MSVC... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e50d4c47b67d6cbce24ff1610475cdbe5f1c68d;p=platform%2Fupstream%2Fllvm.git Consistently make llvm::opt::ArgStringList usage explicit to try and appease MSVC 2015 buildbots. NFCI. llvm-svn: 344398 --- diff --git a/clang/include/clang/Driver/Job.h b/clang/include/clang/Driver/Job.h index 4daa2e6..10b97b9 100644 --- a/clang/include/clang/Driver/Job.h +++ b/clang/include/clang/Driver/Job.h @@ -29,9 +29,6 @@ class Action; class InputInfo; class Tool; -// Re-export this as clang::driver::ArgStringList. -using ArgStringList = llvm::opt::ArgStringList; - struct CrashReportInfo { StringRef Filename; StringRef VFSPath; @@ -135,7 +132,8 @@ public: class FallbackCommand : public Command { public: FallbackCommand(const Action &Source_, const Tool &Creator_, - const char *Executable_, const ArgStringList &Arguments_, + const char *Executable_, + const llvm::opt::ArgStringList &Arguments_, ArrayRef Inputs, std::unique_ptr Fallback_); @@ -153,7 +151,8 @@ private: class ForceSuccessCommand : public Command { public: ForceSuccessCommand(const Action &Source_, const Tool &Creator_, - const char *Executable_, const ArgStringList &Arguments_, + const char *Executable_, + const llvm::opt::ArgStringList &Arguments_, ArrayRef Inputs); void Print(llvm::raw_ostream &OS, const char *Terminator, bool Quote, diff --git a/clang/lib/Driver/Job.cpp b/clang/lib/Driver/Job.cpp index bd1a9bd..b6322b6 100644 --- a/clang/lib/Driver/Job.cpp +++ b/clang/lib/Driver/Job.cpp @@ -35,7 +35,8 @@ using namespace clang; using namespace driver; Command::Command(const Action &Source, const Tool &Creator, - const char *Executable, const ArgStringList &Arguments, + const char *Executable, + const llvm::opt::ArgStringList &Arguments, ArrayRef Inputs) : Source(Source), Creator(Creator), Executable(Executable), Arguments(Arguments) { @@ -366,7 +367,7 @@ int Command::Execute(ArrayRef> Redirects, FallbackCommand::FallbackCommand(const Action &Source_, const Tool &Creator_, const char *Executable_, - const ArgStringList &Arguments_, + const llvm::opt::ArgStringList &Arguments_, ArrayRef Inputs, std::unique_ptr Fallback_) : Command(Source_, Creator_, Executable_, Arguments_, Inputs), @@ -405,11 +406,9 @@ int FallbackCommand::Execute(ArrayRef> Redirects, return SecondaryStatus; } -ForceSuccessCommand::ForceSuccessCommand(const Action &Source_, - const Tool &Creator_, - const char *Executable_, - const ArgStringList &Arguments_, - ArrayRef Inputs) +ForceSuccessCommand::ForceSuccessCommand( + const Action &Source_, const Tool &Creator_, const char *Executable_, + const llvm::opt::ArgStringList &Arguments_, ArrayRef Inputs) : Command(Source_, Creator_, Executable_, Arguments_, Inputs) {} void ForceSuccessCommand::Print(raw_ostream &OS, const char *Terminator, diff --git a/clang/lib/Driver/ToolChains/CrossWindows.cpp b/clang/lib/Driver/ToolChains/CrossWindows.cpp index 6ca04a8..7953560 100644 --- a/clang/lib/Driver/ToolChains/CrossWindows.cpp +++ b/clang/lib/Driver/ToolChains/CrossWindows.cpp @@ -20,6 +20,7 @@ using namespace clang::driver; using namespace clang::driver::toolchains; using llvm::opt::ArgList; +using llvm::opt::ArgStringList; void tools::CrossWindows::Assembler::ConstructJob( Compilation &C, const JobAction &JA, const InputInfo &Output,