[clang] [AArch64][PAC][clang][ELF] Support PAuth ABI core info (PR #85235)
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Wed May 8 22:06:03 PDT 2024
================
@@ -1190,6 +1191,36 @@ void CodeGenModule::Release() {
if (!LangOpts.isSignReturnAddressWithAKey())
getModule().addModuleFlag(llvm::Module::Min,
"sign-return-address-with-bkey", 1);
+
+ if (getTriple().isOSLinux() && getTriple().isOSBinFormatELF()) {
----------------
MaskRay wrote:
Linux implies ELF. You can remove `getTriple().isOSBinFormatELF()`
https://github.com/llvm/llvm-project/pull/85235
More information about the cfe-commits
mailing list