summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/ABIInfo.h
diff options
context:
space:
mode:
authorPetar Jovanovic <petar.jovanovic@imgtec.com>2015-05-26 13:30:54 +0000
committerPetar Jovanovic <petar.jovanovic@imgtec.com>2015-05-26 13:30:54 +0000
commit9aa0f1657f5477eca7c816079728aa358444a23b (patch)
tree709eb05dc0369861c19107d56879dc1fb82a210a /clang/lib/CodeGen/ABIInfo.h
parent0af4f635f184137a437f2c08a45c4661c86e8459 (diff)
downloadbcm5719-llvm-9aa0f1657f5477eca7c816079728aa358444a23b.tar.gz
bcm5719-llvm-9aa0f1657f5477eca7c816079728aa358444a23b.zip
[MIPS] fix extension of integer types (function calls)
On MIPS unsigned int type should not be zero extended but sign-extended. Patch by Strahinja Petrovic. Differential Revision: http://reviews.llvm.org/D9198 llvm-svn: 238200
Diffstat (limited to 'clang/lib/CodeGen/ABIInfo.h')
-rw-r--r--clang/lib/CodeGen/ABIInfo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/ABIInfo.h b/clang/lib/CodeGen/ABIInfo.h
index 7e7f7fa2067..cc8652e169d 100644
--- a/clang/lib/CodeGen/ABIInfo.h
+++ b/clang/lib/CodeGen/ABIInfo.h
@@ -87,6 +87,8 @@ namespace clang {
virtual bool isHomogeneousAggregateSmallEnough(const Type *Base,
uint64_t Members) const;
+ virtual bool shouldSignExtUnsignedType(QualType Ty) const;
+
bool isHomogeneousAggregate(QualType Ty, const Type *&Base,
uint64_t &Members) const;
OpenPOWER on IntegriCloud