[clang] [HIP] Replace use of `llvm-mc` with `clang` (PR #112041)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 11 19:46:27 PDT 2024


================
@@ -463,10 +463,11 @@ void HIP::constructGenerateObjFileFromHIPFatBinary(
 
   Objf << ObjBuffer;
 
-  ArgStringList McArgs{"-triple", Args.MakeArgString(HostTriple.normalize()),
+  ArgStringList McArgs{"-target", Args.MakeArgString(HostTriple.normalize()),
                        "-o",      Output.getFilename(),
-                       McinFile,  "--filetype=obj"};
-  const char *Mc = Args.MakeArgString(TC.GetProgramPath("llvm-mc"));
+                       "-x",      "assembler",
+                       ObjinFile, "-c"};
+  const char *Mc = Args.MakeArgString(TC.GetProgramPath("clang"));
----------------
arsenm wrote:

Shouldn't assume the binary name is clang, other places seem to be doing something like this:

`TCArgs.MakeArgString(getToolChain().GetProgramPath(getShortName()))`



https://github.com/llvm/llvm-project/pull/112041


More information about the cfe-commits mailing list