]> granicus.if.org Git - clang/commit
Give TargetInfo a new IntPtrType to hold the intptr_t type for
authorChris Lattner <sabre@nondot.org>
Fri, 13 Feb 2009 22:28:55 +0000 (22:28 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 13 Feb 2009 22:28:55 +0000 (22:28 +0000)
commit6ad474f82f0cf32e13128d89fa5ad3a37ae73530
tree2d251332b75ff717f85737af03503d5e64239a35
parentdd06e092305c9061bb270f07e0fc6d6946bbc2ad
Give TargetInfo a new IntPtrType to hold the intptr_t type for
a target.

Make Preprocessor.cpp define a new __INTPTR_TYPE__ macro based on this.

On linux/32, set intptr_t to int, instead of long.  This fixes PR3563.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64495 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/TargetInfo.h
lib/Basic/TargetInfo.cpp
lib/Basic/Targets.cpp
lib/Headers/stdint.h
lib/Lex/Preprocessor.cpp