move X86_32ABIInfo::computeInfo out of line.

llvm-svn: 160652
This commit is contained in:
Rafael Espindola 2012-07-24 00:01:07 +00:00
parent 26e9ecb7a3
commit a647296b7c
1 changed files with 9 additions and 8 deletions

View File

@ -440,14 +440,7 @@ class X86_32ABIInfo : public ABIInfo {
public: public:
virtual void computeInfo(CGFunctionInfo &FI) const { virtual void computeInfo(CGFunctionInfo &FI) const;
FI.getReturnInfo() = classifyReturnType(FI.getReturnType(),
FI.getCallingConvention());
for (CGFunctionInfo::arg_iterator it = FI.arg_begin(), ie = FI.arg_end();
it != ie; ++it)
it->info = classifyArgumentType(it->type);
}
virtual llvm::Value *EmitVAArg(llvm::Value *VAListAddr, QualType Ty, virtual llvm::Value *EmitVAArg(llvm::Value *VAListAddr, QualType Ty,
CodeGenFunction &CGF) const; CodeGenFunction &CGF) const;
@ -758,6 +751,14 @@ ABIArgInfo X86_32ABIInfo::classifyArgumentType(QualType Ty) const {
ABIArgInfo::getExtend() : ABIArgInfo::getDirect()); ABIArgInfo::getExtend() : ABIArgInfo::getDirect());
} }
void X86_32ABIInfo::computeInfo(CGFunctionInfo &FI) const {
FI.getReturnInfo() = classifyReturnType(FI.getReturnType(),
FI.getCallingConvention());
for (CGFunctionInfo::arg_iterator it = FI.arg_begin(), ie = FI.arg_end();
it != ie; ++it)
it->info = classifyArgumentType(it->type);
}
llvm::Value *X86_32ABIInfo::EmitVAArg(llvm::Value *VAListAddr, QualType Ty, llvm::Value *X86_32ABIInfo::EmitVAArg(llvm::Value *VAListAddr, QualType Ty,
CodeGenFunction &CGF) const { CodeGenFunction &CGF) const {
llvm::Type *BPP = CGF.Int8PtrPtrTy; llvm::Type *BPP = CGF.Int8PtrPtrTy;