Basic: fix __{,U}INTPTR_TYPE__ on ARM
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 18 Oct 2017 00:00:50 +0000 (00:00 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 18 Oct 2017 00:00:50 +0000 (00:00 +0000)
commit09c41bf0d2ae9320112a5de96cdb9a854a57b483
tree6c9b77ccf224a543b7f244fa6a0e73eeb1d79139
parent1b1d1233bd36a67e19cf1d05a83a870c1cbd1779
Basic: fix __{,U}INTPTR_TYPE__ on ARM

Darwin and OpenBSD are the only platforms which use `long int` for
`__INTPTR_TYPE__`.  The other platforms use `int` in 32-bit, and `long
int` on 64-bit (except for VMS and Windows which are LLP64).  Adjust the
type definitions to match the platform definitions.  We now generate the
same definition as GCC on all the targets.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316046 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets/ARM.cpp
test/Preprocessor/init.c
test/Preprocessor/stdint.c