[llvm-branch-commits] CodeGen: Optionally emit PAuth relocations as IRELATIVE relocations. (PR #133533)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Mar 28 15:37:15 PDT 2025
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 46a1dbce5f0a7f15723334f7453844adfb57bcf1 005ee2d9d87a6f173b97af965242cf0f1989144b --extensions cpp -- llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp b/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
index cbff94f4dc..23b0d125da 100644
--- a/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
+++ b/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
@@ -193,9 +193,11 @@ public:
// authenticating)
void LowerLOADgotAUTH(const MachineInstr &MI);
- const MCExpr *emitPAuthRelocationAsIRelative(
- const MCExpr *Target, uint16_t Disc, AArch64PACKey::ID KeyID,
- bool HasAddressDiversity, bool IsDSOLocal);
+ const MCExpr *emitPAuthRelocationAsIRelative(const MCExpr *Target,
+ uint16_t Disc,
+ AArch64PACKey::ID KeyID,
+ bool HasAddressDiversity,
+ bool IsDSOLocal);
/// tblgen'erated driver function for lowering simple MI->MC
/// pseudo instructions.
@@ -2326,10 +2328,10 @@ const MCExpr *AArch64AsmPrinter::emitPAuthRelocationAsIRelative(
OutStreamer->emitLabel(IFuncSym);
if (isa<MCConstantExpr>(Target)) {
OutStreamer->emitInstruction(MCInstBuilder(AArch64::MOVZXi)
- .addReg(AArch64::X0)
- .addExpr(Target)
- .addImm(0),
- *STI);
+ .addReg(AArch64::X0)
+ .addExpr(Target)
+ .addImm(0),
+ *STI);
} else {
emitAddress(*OutStreamer, AArch64::X0, Target, IsDSOLocal, *STI);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/133533
More information about the llvm-branch-commits
mailing list