More ABI API cleanup.

- Lift CGFunctionInfo creation above ReturnTypeUsesSret and
   EmitFunction{Epi,Pro}log.

llvm-svn: 63553
This commit is contained in:
Daniel Dunbar
2009-02-02 22:03:45 +00:00
parent e83866065b
commit d931a87f90
9 changed files with 34 additions and 32 deletions

View File

@@ -265,7 +265,7 @@ void CodeGenModule::SetFunctionAttributes(const Decl *D,
const CGFunctionInfo &Info,
llvm::Function *F) {
AttributeListType AttributeList;
ConstructAttributeList(D, Info, AttributeList);
ConstructAttributeList(Info, D, AttributeList);
F->setAttributes(llvm::AttrListPtr::get(AttributeList.begin(),
AttributeList.size()));