================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits