summaryrefslogtreecommitdiff
path: root/lib/Basic/Targets.cpp
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2014-03-26 11:48:29 +0000
committerJoerg Sonnenberger <joerg@bec.de>2014-03-26 11:48:29 +0000
commit404ae9f8b29b3cee93d9e68d03d2f68c19bdfc31 (patch)
tree2a65475e089f0aa5e6fc387b649fdbc5bb80f995 /lib/Basic/Targets.cpp
parentc4b46b10b2aeffd9fca534063bc7c81b2beb6c8f (diff)
downloadclang-404ae9f8b29b3cee93d9e68d03d2f68c19bdfc31.tar.gz
clang-404ae9f8b29b3cee93d9e68d03d2f68c19bdfc31.tar.bz2
clang-404ae9f8b29b3cee93d9e68d03d2f68c19bdfc31.tar.xz
From Matt Thomas: use long long for [u]int64_t and [u]intmax_t on
NetBSD/aarch64 to simplify code sharing with NetBSD/arm. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204798 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Targets.cpp')
-rw-r--r--lib/Basic/Targets.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp
index d22599dec6..fa1fb83845 100644
--- a/lib/Basic/Targets.cpp
+++ b/lib/Basic/Targets.cpp
@@ -3386,19 +3386,23 @@ class AArch64TargetInfo : public TargetInfo {
public:
AArch64TargetInfo(const llvm::Triple &Triple) : TargetInfo(Triple) {
- IntMaxType = SignedLong;
- UIntMaxType = UnsignedLong;
- Int64Type = SignedLong;
LongWidth = LongAlign = 64;
LongDoubleWidth = LongDoubleAlign = 128;
PointerWidth = PointerAlign = 64;
SuitableAlign = 128;
WCharType = UnsignedInt;
- if (getTriple().getOS() == llvm::Triple::NetBSD)
+ if (getTriple().getOS() == llvm::Triple::NetBSD) {
WCharType = SignedInt;
- else
+ Int64Type = SignedLongLong;
+ IntMaxType = SignedLongLong;
+ UIntMaxType = UnsignedLongLong;
+ } else {
WCharType = UnsignedInt;
+ Int64Type = SignedLong;
+ IntMaxType = SignedLong;
+ UIntMaxType = UnsignedLong;
+ }
LongDoubleFormat = &llvm::APFloat::IEEEquad;
// AArch64 backend supports 64-bit operations at the moment. In principle