]> granicus.if.org Git - clang/commitdiff
now that direct and coerce are merged, getCoerceResult gets simpler.
authorChris Lattner <sabre@nondot.org>
Thu, 29 Jul 2010 21:29:53 +0000 (21:29 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 29 Jul 2010 21:29:53 +0000 (21:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109805 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TargetInfo.cpp

index fc19637e2abf42217a0236f90de20207931ec5c3..870d6dd68ee8b90ce94d3acf48f74720b55db891 100644 (file)
@@ -1110,11 +1110,6 @@ void X86_64ABIInfo::classify(QualType Ty, uint64_t OffsetBase,
 
 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.