================
@@ -3637,3 +3637,28 @@ void tools::setComplexRange(const Driver &D, StringRef 
NewOpt,
   LastOpt = NewOpt;
   Range = NewRange;
 }
+
+void tools::constructLlvmLinkCommand(Compilation &C, const Tool &T,
+                                     const JobAction &JA,
+                                     const InputInfoList &JobInputs,
+                                     const ArgStringList &LinkerInputs,
+                                     const InputInfo &Output,
+                                     const llvm::opt::ArgList &Args,
+                                     const char *OutputFilename) {
+  // Construct llvm-link command.
+  // The output from llvm-link is a bitcode file.
+
+  assert(!LinkerInputs.empty() && !JobInputs.empty() &&
+         "Must have at least one input.");
+
+  ArgStringList LlvmLinkArgs(
----------------
mgcarrasco wrote:

If I follow, the function expects that the input files (JobInputs) are already 
in the string list (LinkerInputs). The handling of the output file may be 
inconsistent with the one of the input files. The function does the 
ArgStringList handling for the the output file but not the inputs. Is there any 
reason? 

https://github.com/llvm/llvm-project/pull/169572
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to