瀏覽代碼

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
Samuel Antao 8 年之前
父節點
當前提交
4920d32289
共有 5 個文件被更改,包括 21 次插入21 次删除
  1. 5 5
      include/clang/Driver/Tool.h
  2. 1 1
      lib/Driver/Driver.cpp
  3. 6 6
      lib/Driver/Tool.cpp
  4. 4 5
      lib/Driver/Tools.cpp
  5. 5 4
      lib/Driver/Tools.h

+ 5 - 5
include/clang/Driver/Tool.h

@@ -138,11 +138,11 @@ public:
   /// tool chain specific translations applied.
   /// tool chain specific translations applied.
   /// \param LinkingOutput If this output will eventually feed the
   /// \param LinkingOutput If this output will eventually feed the
   /// linker, then this is the final output name of the linked image.
   /// 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
 } // end namespace driver

+ 1 - 1
lib/Driver/Driver.cpp

@@ -3199,7 +3199,7 @@ InputInfo Driver::BuildJobsForActionNoCache(
           C.getArgsForToolChain(TC, BoundArch, JA->getOffloadingDeviceKind()),
           C.getArgsForToolChain(TC, BoundArch, JA->getOffloadingDeviceKind()),
           LinkingOutput);
           LinkingOutput);
     else
     else
-      T->ConstructJob(
+      T->ConstructJobMultipleOutputs(
           C, *JA, UnbundlingResults, InputInfos,
           C, *JA, UnbundlingResults, InputInfos,
           C.getArgsForToolChain(TC, BoundArch, JA->getOffloadingDeviceKind()),
           C.getArgsForToolChain(TC, BoundArch, JA->getOffloadingDeviceKind()),
           LinkingOutput);
           LinkingOutput);

+ 6 - 6
lib/Driver/Tool.cpp

@@ -23,11 +23,11 @@ Tool::Tool(const char *_Name, const char *_ShortName, const ToolChain &TC,
 Tool::~Tool() {
 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!");
   assert(Outputs.size() == 1 && "Expected only one output by default!");
   ConstructJob(C, JA, Outputs.front(), Inputs, TCArgs, LinkingOutput);
   ConstructJob(C, JA, Outputs.front(), Inputs, TCArgs, LinkingOutput);
-};
+}

+ 4 - 5
lib/Driver/Tools.cpp

@@ -7133,11 +7133,10 @@ void OffloadBundler::ConstructJob(Compilation &C, const JobAction &JA,
       CmdArgs, None));
       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.
   // The version with multiple outputs is expected to refer to a unbundling job.
   auto &UA = cast<OffloadUnbundlingJobAction>(JA);
   auto &UA = cast<OffloadUnbundlingJobAction>(JA);
 
 

+ 5 - 4
lib/Driver/Tools.h

@@ -148,10 +148,11 @@ public:
                     const InputInfo &Output, const InputInfoList &Inputs,
                     const InputInfo &Output, const InputInfoList &Inputs,
                     const llvm::opt::ArgList &TCArgs,
                     const llvm::opt::ArgList &TCArgs,
                     const char *LinkingOutput) const override;
                     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
 /// \brief Base class for all GNU tools that provide the same behavior when