now that direct and coerce are merged, getCoerceResult gets simpler.

llvm-svn: 109805
This commit is contained in:
Chris Lattner 2010-07-29 21:29:53 +00:00
parent 09794695ef
commit 60fbd7744f
1 changed files with 0 additions and 5 deletions

View 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.