More ABI API cleanup.
- Lift CGFunctionInfo creation above ReturnTypeUsesSret and
EmitFunction{Epi,Pro}log.
llvm-svn: 63553
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 724ca28..bedefca 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -244,10 +244,10 @@
/// ReturnTypeUsesSret - Return true iff the given type uses 'sret'
/// when used as a return type.
- bool ReturnTypeUsesSret(QualType RetTy);
+ bool ReturnTypeUsesSret(const CGFunctionInfo &FI);
- void ConstructAttributeList(const Decl *TargetDecl,
- const CGFunctionInfo &Info,
+ void ConstructAttributeList(const CGFunctionInfo &Info,
+ const Decl *TargetDecl,
AttributeListType &PAL);
private: