================
@@ -25,12 +32,30 @@ class SparcV8ABIInfo : public DefaultABIInfo {
SparcV8ABIInfo(CodeGenTypes &CGT) : DefaultABIInfo(CGT) {}
private:
+ llvm::Type *getComplexIntCoerceType(QualType Ty) const;
ABIArgInfo classifyReturnType(QualType RetTy) const;
ABIArgInfo classifyArgumentType(QualType Ty) const;
void computeInfo(CGFunctionInfo &FI) const override;
};
} // end anonymous namespace
+llvm::Type *SparcV8ABIInfo::getComplexIntCoerceType(QualType Ty) const {
----------------
s-barannikov wrote:
(nit) It would be cleaner to let this function handle all complex types:
```suggestion
ABIArgInfo SparcV8ABIInfo::classifyComplexType(const ComplexType *Ty) const {
```
https://github.com/llvm/llvm-project/pull/212340
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits