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

via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 11 12:58:51 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 67160c5ab5f5b7fd5fa7851abcfde367c8a9f91b 84a8f05136c71a4fbc00062ffe1d33575336cbdc --extensions cpp -- clang/lib/Driver/ToolChains/HIPUtility.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Driver/ToolChains/HIPUtility.cpp b/clang/lib/Driver/ToolChains/HIPUtility.cpp
index ffeea269a0..0dc9f7f8a5 100644
--- a/clang/lib/Driver/ToolChains/HIPUtility.cpp
+++ b/clang/lib/Driver/ToolChains/HIPUtility.cpp
@@ -464,8 +464,9 @@ void HIP::constructGenerateObjFileFromHIPFatBinary(
   Objf << ObjBuffer;
 
   ArgStringList McArgs{"-target", Args.MakeArgString(HostTriple.normalize()),
-                       "-o",      Output.getFilename(), "-x", "assembler",
-                       ObjinFile,  "-c"};
+                       "-o",      Output.getFilename(),
+                       "-x",      "assembler",
+                       ObjinFile, "-c"};
   const char *Mc = Args.MakeArgString(TC.GetProgramPath("clang"));
   C.addCommand(std::make_unique<Command>(JA, T, ResponseFileSupport::None(), Mc,
                                          McArgs, Inputs, Output));

``````````

</details>


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


More information about the cfe-commits mailing list