[clang] [llvm] [SystemZ][z/OS] Add options -m[no-]zos-ppa1-name to remove the function name in PPA1. (PR #207416)
Ulrich Weigand via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 7 04:48:13 PDT 2026
================
@@ -595,6 +595,19 @@ class ZOSXPLinkTargetCodeGenInfo : public TargetCodeGenInfo {
SwiftInfo =
std::make_unique<SwiftABIInfo>(CGT, /*SwiftErrorInRegister=*/false);
}
+
+ void setTargetAttributes(const Decl *D, llvm::GlobalValue *GV,
+ CodeGen::CodeGenModule &M) const override {
+ if (dyn_cast_or_null<FunctionDecl>(D)) {
----------------
uweigand wrote:
Instead of having a `FunctionDecl` check here, I think it would be preferable to move this to a place that is already function-specific. For example `-mpacked-stack` is handled in `CodeGenFunction::StartFunction`, which seems an appropriate place for this as well.
https://github.com/llvm/llvm-project/pull/207416
More information about the cfe-commits
mailing list