summaryrefslogtreecommitdiffstats
path: root/clang
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
commit60fbd7744fea5a0207efc5a872ec04decabf057e (patch)
tree8880346d4606e850d2f8c6d9e968808c2abfc669 /clang
parent09794695ef05a115d0f7a2910c147852d4c17d7c (diff)
downloadbcm5719-llvm-60fbd7744fea5a0207efc5a872ec04decabf057e.tar.gz
bcm5719-llvm-60fbd7744fea5a0207efc5a872ec04decabf057e.zip
now that direct and coerce are merged, getCoerceResult gets simpler.
llvm-svn: 109805
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/CodeGen/TargetInfo.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp
index fc19637e2ab..870d6dd68ee 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<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.
OpenPOWER on IntegriCloud