[cfe-commits] r123790 - /cfe/trunk/lib/CodeGen/TargetInfo.cpp
NAKAMURA Takumi
geek4civic at gmail.com
Tue Jan 18 16:11:33 PST 2011
Author: chapuni
Date: Tue Jan 18 18:11:33 2011
New Revision: 123790
URL: http://llvm.org/viewvc/llvm-project?rev=123790&view=rev
Log:
lib/CodeGen/TargetInfo.cpp: Fix coding style and erase an obsolete comment.
Modified:
cfe/trunk/lib/CodeGen/TargetInfo.cpp
Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetInfo.cpp?rev=123790&r1=123789&r2=123790&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Tue Jan 18 18:11:33 2011
@@ -2079,13 +2079,13 @@
uint64_t Size = getContext().getTypeSize(Ty);
if (const RecordType *RT = Ty->getAs<RecordType>()) {
- if (hasNonTrivialDestructorOrCopyConstructor(RT)
- || RT->getDecl()->hasFlexibleArrayMember())
+ if (hasNonTrivialDestructorOrCopyConstructor(RT) ||
+ RT->getDecl()->hasFlexibleArrayMember())
return ABIArgInfo::getIndirect(0, /*ByVal=*/false);
// FIXME: mingw64-gcc emits 128-bit struct as i128
- if (Size <= 128
- && (Size & (Size - 1)) == 0)
+ if (Size <= 128 &&
+ (Size & (Size - 1)) == 0)
return ABIArgInfo::getDirect(llvm::IntegerType::get(getVMContext(),
Size));
@@ -2103,8 +2103,6 @@
QualType RetTy = FI.getReturnType();
FI.getReturnInfo() = classify(RetTy);
- // AMD64-ABI 3.2.3p3: Once arguments are classified, the registers
- // get assigned (in left-to-right order) for passing as follows...
for (CGFunctionInfo::arg_iterator it = FI.arg_begin(), ie = FI.arg_end();
it != ie; ++it)
it->info = classify(it->type);
More information about the cfe-commits
mailing list