diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-13 22:28:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-13 22:28:55 +0000 |
commit | 7e4c81c8c69f57cb1fa02d5cd3e1898a12fa333c (patch) | |
tree | 21080758dbaae7bbbc77adb4552fc9a96918a8c9 /clang/lib/Basic/TargetInfo.cpp | |
parent | 02b63b42873620d9931f44d32ed2c95f776eef07 (diff) | |
download | bcm5719-llvm-7e4c81c8c69f57cb1fa02d5cd3e1898a12fa333c.tar.gz bcm5719-llvm-7e4c81c8c69f57cb1fa02d5cd3e1898a12fa333c.zip |
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.
llvm-svn: 64495
Diffstat (limited to 'clang/lib/Basic/TargetInfo.cpp')
-rw-r--r-- | clang/lib/Basic/TargetInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Basic/TargetInfo.cpp b/clang/lib/Basic/TargetInfo.cpp index 378a91503bf..82b6c190cda 100644 --- a/clang/lib/Basic/TargetInfo.cpp +++ b/clang/lib/Basic/TargetInfo.cpp @@ -39,6 +39,7 @@ TargetInfo::TargetInfo(const std::string &T) : Triple(T) { PtrDiffType = SignedLong; IntMaxType = SignedLongLong; UIntMaxType = UnsignedLongLong; + IntPtrType = SignedLong; WCharType = SignedInt; FloatFormat = &llvm::APFloat::IEEEsingle; DoubleFormat = &llvm::APFloat::IEEEdouble; |