diff options
author | Manman Ren <mren@apple.com> | 2012-11-06 19:05:29 +0000 |
---|---|---|
committer | Manman Ren <mren@apple.com> | 2012-11-06 19:05:29 +0000 |
commit | cb489dde66331865281e007b21f8f94da01f8d1e (patch) | |
tree | 5b14616171c49590385086847cdcf4f44ee5ddcb /lib/CodeGen/TargetInfo.cpp | |
parent | be6318b2f02e14a1b717d30691351e8415e246c1 (diff) |
Cleanup: 80-column violation
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167476 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetInfo.cpp')
-rw-r--r-- | lib/CodeGen/TargetInfo.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index 22292603f6..ffff0d0a1b 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -3206,7 +3206,8 @@ ABIArgInfo ARMABIInfo::classifyArgumentType(QualType Ty, int *VFPRegs, if (Base->isVectorType()) { // ElementSize is in number of floats. unsigned ElementSize = getContext().getTypeSize(Base) == 64 ? 2 : 4; - markAllocatedVFPs(VFPRegs, AllocatedVFP, ElementSize, Members * ElementSize); + markAllocatedVFPs(VFPRegs, AllocatedVFP, ElementSize, + Members * ElementSize); } else if (Base->isSpecificBuiltinType(BuiltinType::Float)) markAllocatedVFPs(VFPRegs, AllocatedVFP, 1, Members); else { @@ -3220,8 +3221,9 @@ ABIArgInfo ARMABIInfo::classifyArgumentType(QualType Ty, int *VFPRegs, } // Support byval for ARM. - // The ABI alignment for APCS is 4-byte and for AAPCS at least 4-byte and at most 8-byte. - // We realign the indirect argument if type alignment is bigger than ABI alignment. + // The ABI alignment for APCS is 4-byte and for AAPCS at least 4-byte and at + // most 8-byte. We realign the indirect argument if type alignment is bigger + // than ABI alignment. uint64_t ABIAlign = 4; uint64_t TyAlign = getContext().getTypeAlign(Ty) / 8; if (getABIKind() == ARMABIInfo::AAPCS_VFP || @@ -3229,7 +3231,7 @@ ABIArgInfo ARMABIInfo::classifyArgumentType(QualType Ty, int *VFPRegs, ABIAlign = std::min(std::max(TyAlign, (uint64_t)4), (uint64_t)8); if (getContext().getTypeSizeInChars(Ty) > CharUnits::fromQuantity(64)) { return ABIArgInfo::getIndirect(0, /*ByVal=*/true, - /*Realign=*/TyAlign <= ABIAlign ? false : true); + /*Realign=*/TyAlign > ABIAlign); } // Otherwise, pass by coercing to a structure of the appropriate size. |