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.


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to