[clang] [NFC][Clang] Move set functions out BranchProtectionInfo. (PR #98451)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 11 12:13:02 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 bf4167fd1d06ff68da2cbea210a4ccfa045694d3 6c3f68439fd102070f183a77b7d58d49f399b43c --extensions h,cpp -- clang/include/clang/Basic/TargetInfo.h clang/lib/CodeGen/TargetInfo.cpp clang/lib/CodeGen/TargetInfo.h clang/lib/CodeGen/Targets/AArch64.cpp clang/lib/CodeGen/Targets/ARM.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp
index a9e4ff2a82..38faa50cf1 100644
--- a/clang/lib/CodeGen/TargetInfo.cpp
+++ b/clang/lib/CodeGen/TargetInfo.cpp
@@ -215,8 +215,7 @@ void TargetCodeGenInfo::setBranchProtectionFnAttributes(
}
void TargetCodeGenInfo::setBranchProtectionFnAttributes(
- const TargetInfo::BranchProtectionInfo &BPI,
- llvm::AttrBuilder &FuncAttrs) {
+ const TargetInfo::BranchProtectionInfo &BPI, llvm::AttrBuilder &FuncAttrs) {
if (BPI.SignReturnAddr != LangOptions::SignReturnAddressScopeKind::None) {
FuncAttrs.addAttribute("sign-return-address", BPI.getSignReturnAddrStr());
FuncAttrs.addAttribute("sign-return-address-key", BPI.getSignKeyStr());
``````````
</details>
https://github.com/llvm/llvm-project/pull/98451
More information about the cfe-commits
mailing list