diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-12-01 04:22:48 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-12-01 04:22:48 +0000 |
commit | 604470b7431605cd798a8e20220b730efaf3a7c5 (patch) | |
tree | 53be6e3381afa10e36ee4cff5df99f17bdc88acf | |
parent | 6f1d0977d1d5688b12d953408820ccc7258041ef (diff) | |
download | clang-604470b7431605cd798a8e20220b730efaf3a7c5.tar.gz clang-604470b7431605cd798a8e20220b730efaf3a7c5.tar.bz2 clang-604470b7431605cd798a8e20220b730efaf3a7c5.tar.xz |
Merging r195970:
------------------------------------------------------------------------
r195970 | joerg | 2013-11-29 16:38:16 -0800 (Fri, 29 Nov 2013) | 2 lines
NetBSD uses signed wchar_t on ARM platforms.
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_34@196009 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Basic/Targets.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 8b35c9a8aa..c087a1e9f4 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -3708,8 +3708,15 @@ public: BigEndian = false; SizeType = UnsignedInt; PtrDiffType = SignedInt; - // AAPCS 7.1.1, ARM-Linux ABI 2.4: type of wchar_t is unsigned int. - WCharType = UnsignedInt; + switch (getTriple().getOS()) { + case llvm::Triple::NetBSD: + WCharType = SignedInt; + break; + default: + // AAPCS 7.1.1, ARM-Linux ABI 2.4: type of wchar_t is unsigned int. + WCharType = UnsignedInt; + break; + } // {} in inline assembly are neon specifiers, not assembly variant // specifiers. |