Add comments for turning on byval

llvm-svn: 161702
This commit is contained in:
Manman Ren 2012-08-10 21:32:09 +00:00
parent f32302a7d9
commit 804137fd75
1 changed files with 2 additions and 0 deletions

View File

@ -2757,6 +2757,8 @@ ABIArgInfo ARMABIInfo::classifyArgumentType(QualType Ty) const {
}
}
// Turn on byval for APCS and AAPCS.
// FIXME: turn on byval for AAPCS_VFP for performance.
if (getABIKind() == ARMABIInfo::APCS || getABIKind() == ARMABIInfo::AAPCS) {
if (getContext().getTypeSizeInChars(Ty) > CharUnits::fromQuantity(64) ||
getContext().getTypeAlign(Ty) > 64) {