NetBSD uses signed wchar_t on ARM platforms.

llvm-svn: 195970
This commit is contained in:
Joerg Sonnenberger 2013-11-30 00:38:16 +00:00
parent c2ab53a318
commit 84c7ca8851
1 changed files with 9 additions and 2 deletions

View File

@ -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.