diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-01-19 00:11:33 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-01-19 00:11:33 +0000 |
commit | e03c603624f93bcbc5570d14bdb18822b61c04b9 (patch) | |
tree | c0338ad76e5a3408cd728fdce3ef5db1ea010da6 /clang/lib/CodeGen/TargetInfo.cpp | |
parent | 2c777c4afb3055ad25b59eb852ed33f421fd6d10 (diff) | |
download | bcm5719-llvm-e03c603624f93bcbc5570d14bdb18822b61c04b9.tar.gz bcm5719-llvm-e03c603624f93bcbc5570d14bdb18822b61c04b9.zip |
lib/CodeGen/TargetInfo.cpp: Fix coding style and erase an obsolete comment.
llvm-svn: 123790
Diffstat (limited to 'clang/lib/CodeGen/TargetInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/TargetInfo.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index 71fe9078d12..a1fdb87c183 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp @@ -2079,13 +2079,13 @@ ABIArgInfo WinX86_64ABIInfo::classify(QualType Ty) const { 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 @@ void WinX86_64ABIInfo::computeInfo(CGFunctionInfo &FI) const { 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); |