[lld] [llvm] Reapply "[RISCV] Support RISCV Atomics ABI attributes (#84597)" (PR #90266)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 2 09:14:41 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 d6c4ebbf78c67cd298f6ba2da6c06e2362f4d0f4 849a8be7ec4083635243a5307dcbdb796a4925d7 -- lld/ELF/Arch/RISCV.cpp llvm/include/llvm/Support/RISCVAttributeParser.h llvm/include/llvm/Support/RISCVAttributes.h llvm/lib/Support/RISCVAttributeParser.cpp llvm/lib/Support/RISCVAttributes.cpp llvm/lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/ELF/Arch/RISCV.cpp b/lld/ELF/Arch/RISCV.cpp
index 7b3116ef1a..0a11ab9a6f 100644
--- a/lld/ELF/Arch/RISCV.cpp
+++ b/lld/ELF/Arch/RISCV.cpp
@@ -1104,8 +1104,8 @@ static void mergeAtomic(DenseMap<unsigned, unsigned>::iterator it,
return;
case AtomicABI::A7:
errorOrWarn(toString(oldSection) + " has atomic_abi=" + Twine(oldTag) +
- " but " + toString(newSection) +
- " has atomic_abi=" + Twine(newTag));
+ " but " + toString(newSection) +
+ " has atomic_abi=" + Twine(newTag));
return;
};
@@ -1126,8 +1126,8 @@ static void mergeAtomic(DenseMap<unsigned, unsigned>::iterator it,
return;
case AtomicABI::A6C:
errorOrWarn(toString(oldSection) + " has atomic_abi=" + Twine(oldTag) +
- " but " + toString(newSection) +
- " has atomic_abi=" + Twine(newTag));
+ " but " + toString(newSection) +
+ " has atomic_abi=" + Twine(newTag));
return;
};
default:
``````````
</details>
https://github.com/llvm/llvm-project/pull/90266
More information about the llvm-commits
mailing list