[llvm] [clang] Hurd: Add x86_64 support (PR #78065)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 14 10:23:19 PST 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 270c6cbda2acf1f60891e10667af6d9741b62009 151e8d9325e68259bfbf227d148ed4b508125856 -- clang/lib/Basic/Targets.cpp clang/lib/Driver/ToolChains/Gnu.cpp clang/lib/Driver/ToolChains/Hurd.cpp clang/test/Driver/hurd.cpp llvm/unittests/TargetParser/TripleTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
index 16da6c0425..891a0278af 100644
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
@@ -2659,11 +2659,9 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes(
switch (TargetTriple.getArch()) {
case llvm::Triple::x86_64:
LibDirs.append(begin(X86_64LibDirs), end(X86_64LibDirs));
- TripleAliases.append(begin(X86_64HurdTriples),
- end(X86_64HurdTriples));
+ TripleAliases.append(begin(X86_64HurdTriples), end(X86_64HurdTriples));
BiarchLibDirs.append(begin(X86LibDirs), end(X86LibDirs));
- BiarchTripleAliases.append(begin(X86HurdTriples),
- end(X86HurdTriples));
+ BiarchTripleAliases.append(begin(X86HurdTriples), end(X86HurdTriples));
break;
case llvm::Triple::x86:
LibDirs.append(begin(X86LibDirs), end(X86LibDirs));
``````````
</details>
https://github.com/llvm/llvm-project/pull/78065
More information about the cfe-commits
mailing list