summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorKen Dyck <ken.dyck@onsemi.com>2009-11-19 12:21:52 +0000
committerKen Dyck <ken.dyck@onsemi.com>2009-11-19 12:21:52 +0000
commit056efe0fc7319f129670a68332a7d2dd7f861d39 (patch)
tree4cc867bb03d52a2a7b8c1250a04d6af84499dec3 /clang/lib/Frontend/InitPreprocessor.cpp
parent3846506466ff9b7349ee0813deeabeacc4617f6b (diff)
downloadbcm5719-llvm-056efe0fc7319f129670a68332a7d2dd7f861d39.tar.gz
bcm5719-llvm-056efe0fc7319f129670a68332a7d2dd7f861d39.zip
Add __PTRDIFF_WIDTH__ macro to eventually replace __PTRDIFF_TYPE__ in stdint.h.
llvm-svn: 89342
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r--clang/lib/Frontend/InitPreprocessor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp
index 03d3a0039eb..c64b846278f 100644
--- a/clang/lib/Frontend/InitPreprocessor.cpp
+++ b/clang/lib/Frontend/InitPreprocessor.cpp
@@ -390,6 +390,7 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
DefineTypeWidth("__INTMAX_WIDTH__", TI.getIntMaxType(), TI, Buf);
DefineType("__PTRDIFF_TYPE__", TI.getPtrDiffType(0), Buf);
+ DefineTypeWidth("__PTRDIFF_WIDTH__", TI.getPtrDiffType(0), TI, Buf);
DefineTypeWidth("__INTPTR_WIDTH__", TI.getIntPtrType(), TI, Buf);
DefineType("__SIZE_TYPE__", TI.getSizeType(), Buf);
DefineType("__WCHAR_TYPE__", TI.getWCharType(), Buf);
OpenPOWER on IntegriCloud