From: Samuel Antao Date: Thu, 3 Nov 2016 15:41:50 +0000 (+0000) Subject: Rename the version of ConstructJob for multiple outputs to ConstructJobMultipleOutputs. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4920d3228938c5ca6d6dd267da640e9ff65b6802;p=clang Rename the version of ConstructJob for multiple outputs to ConstructJobMultipleOutputs. It was causing trouble with the GCC bots. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285925 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/Tool.h b/include/clang/Driver/Tool.h index 17bbb86c1e..5012cc8966 100644 --- a/include/clang/Driver/Tool.h +++ b/include/clang/Driver/Tool.h @@ -138,11 +138,11 @@ public: /// tool chain specific translations applied. /// \param LinkingOutput If this output will eventually feed the /// linker, then this is the final output name of the linked image. - virtual void ConstructJob(Compilation &C, const JobAction &JA, - const InputInfoList &Outputs, - const InputInfoList &Inputs, - const llvm::opt::ArgList &TCArgs, - const char *LinkingOutput) const; + virtual void ConstructJobMultipleOutputs(Compilation &C, const JobAction &JA, + const InputInfoList &Outputs, + const InputInfoList &Inputs, + const llvm::opt::ArgList &TCArgs, + const char *LinkingOutput) const; }; } // end namespace driver diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index f5c7bcddd5..61b277df15 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -3199,7 +3199,7 @@ InputInfo Driver::BuildJobsForActionNoCache( C.getArgsForToolChain(TC, BoundArch, JA->getOffloadingDeviceKind()), LinkingOutput); else - T->ConstructJob( + T->ConstructJobMultipleOutputs( C, *JA, UnbundlingResults, InputInfos, C.getArgsForToolChain(TC, BoundArch, JA->getOffloadingDeviceKind()), LinkingOutput); diff --git a/lib/Driver/Tool.cpp b/lib/Driver/Tool.cpp index cf227bee83..8184946621 100644 --- a/lib/Driver/Tool.cpp +++ b/lib/Driver/Tool.cpp @@ -23,11 +23,11 @@ Tool::Tool(const char *_Name, const char *_ShortName, const ToolChain &TC, Tool::~Tool() { } -void Tool::ConstructJob(Compilation &C, const JobAction &JA, - const InputInfoList &Outputs, - const InputInfoList &Inputs, - const llvm::opt::ArgList &TCArgs, - const char *LinkingOutput) const { +void Tool::ConstructJobMultipleOutputs(Compilation &C, const JobAction &JA, + const InputInfoList &Outputs, + const InputInfoList &Inputs, + const llvm::opt::ArgList &TCArgs, + const char *LinkingOutput) const { assert(Outputs.size() == 1 && "Expected only one output by default!"); ConstructJob(C, JA, Outputs.front(), Inputs, TCArgs, LinkingOutput); -}; +} diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 02799380ab..386b1d3bd2 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -7133,11 +7133,10 @@ void OffloadBundler::ConstructJob(Compilation &C, const JobAction &JA, CmdArgs, None)); } -void OffloadBundler::ConstructJob(Compilation &C, const JobAction &JA, - const InputInfoList &Outputs, - const InputInfoList &Inputs, - const llvm::opt::ArgList &TCArgs, - const char *LinkingOutput) const { +void OffloadBundler::ConstructJobMultipleOutputs( + Compilation &C, const JobAction &JA, const InputInfoList &Outputs, + const InputInfoList &Inputs, const llvm::opt::ArgList &TCArgs, + const char *LinkingOutput) const { // The version with multiple outputs is expected to refer to a unbundling job. auto &UA = cast(JA); diff --git a/lib/Driver/Tools.h b/lib/Driver/Tools.h index 9687b04652..b0d5db9ec8 100644 --- a/lib/Driver/Tools.h +++ b/lib/Driver/Tools.h @@ -148,10 +148,11 @@ public: const InputInfo &Output, const InputInfoList &Inputs, const llvm::opt::ArgList &TCArgs, const char *LinkingOutput) const override; - void ConstructJob(Compilation &C, const JobAction &JA, - const InputInfoList &Outputs, const InputInfoList &Inputs, - const llvm::opt::ArgList &TCArgs, - const char *LinkingOutput) const override; + void ConstructJobMultipleOutputs(Compilation &C, const JobAction &JA, + const InputInfoList &Outputs, + const InputInfoList &Inputs, + const llvm::opt::ArgList &TCArgs, + const char *LinkingOutput) const override; }; /// \brief Base class for all GNU tools that provide the same behavior when