[cfe-commits] r109805 - /cfe/trunk/lib/CodeGen/TargetInfo.cpp
Chris Lattner
sabre at nondot.org
Thu Jul 29 14:29:53 PDT 2010
Author: lattner
Date: Thu Jul 29 16:29:53 2010
New Revision: 109805
URL: http://llvm.org/viewvc/llvm-project?rev=109805&view=rev
Log:
now that direct and coerce are merged, getCoerceResult gets simpler.
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=109805&r1=109804&r2=109805&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Thu Jul 29 16:29:53 2010
@@ -1110,11 +1110,6 @@
ABIArgInfo X86_64ABIInfo::getCoerceResult(QualType Ty,
const llvm::Type *CoerceTo) const {
- // If this is a pointer passed as a pointer, just pass it directly.
- if ((isa<llvm::PointerType>(CoerceTo) || CoerceTo->isIntegerTy(64)) &&
- Ty->hasPointerRepresentation())
- return ABIArgInfo::getExtend();
-
if (isa<llvm::IntegerType>(CoerceTo)) {
// Integer and pointer types will end up in a general purpose
// register.
More information about the cfe-commits
mailing list