aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-07-29 21:29:53 +0000
committerChris Lattner <sabre@nondot.org>2010-07-29 21:29:53 +0000
commit1cce1958b127f1722a18825b2cd793ce21246911 (patch)
tree23fee37715d80921bb1dc9a015c989587d0a202d
parent1b32ae9537186c021409bebeaa308db886ed98a2 (diff)
now that direct and coerce are merged, getCoerceResult gets simpler.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109805 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/TargetInfo.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp
index fc19637e2a..870d6dd68e 100644
--- a/lib/CodeGen/TargetInfo.cpp
+++ b/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<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.