From 804137fd759b5ba66f7ef2589a9d1732ec05d9a1 Mon Sep 17 00:00:00 2001 From: Manman Ren Date: Fri, 10 Aug 2012 21:32:09 +0000 Subject: [PATCH] Add comments for turning on byval llvm-svn: 161702 --- clang/lib/CodeGen/TargetInfo.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index 752228e2a38f..2cd239c81a27 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp @@ -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) {