================
@@ -301,11 +301,7 @@ constructHexagonLinkArgs(Compilation &C, const JobAction 
&JA,
   bool IncStartFiles = !Args.hasArg(options::OPT_nostartfiles);
   bool IncDefLibs = !Args.hasArg(options::OPT_nodefaultlibs);
   bool UseLLD = false;
-  const char *Exec = Args.MakeArgString(HTC.GetLinkerPath(&UseLLD));
-  StringRef LinkerName = llvm::sys::path::filename(Exec);
-  UseLLD = UseLLD || LinkerName.starts_with("ld.lld") ||
-           LinkerName.ends_with("ld.lld") ||
-           llvm::sys::path::stem(Exec).ends_with("ld.lld");
+  (void)HTC.GetLinkerPath(&UseLLD);
----------------
frobtech wrote:

Done—hoisted `HTC.GetLinkerPath(&UseLLD)` into `hexagon::Linker::ConstructJob` 
and passed `UseLLD` into `constructHexagonLinkArgs`.

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

Reply via email to