NetBSD uses signed wchar_t on ARM platforms.
llvm-svn: 195970
This commit is contained in:
parent
c2ab53a318
commit
84c7ca8851
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue