From 60fbd7744fea5a0207efc5a872ec04decabf057e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 29 Jul 2010 21:29:53 +0000 Subject: [PATCH] now that direct and coerce are merged, getCoerceResult gets simpler. llvm-svn: 109805 --- clang/lib/CodeGen/TargetInfo.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index fc19637e2abf..870d6dd68ee8 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp @@ -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(CoerceTo) || CoerceTo->isIntegerTy(64)) && - Ty->hasPointerRepresentation()) - return ABIArgInfo::getExtend(); - if (isa(CoerceTo)) { // Integer and pointer types will end up in a general purpose // register.