diff options
author | Ken Dyck <ken.dyck@onsemi.com> | 2009-11-18 20:05:48 +0000 |
---|---|---|
committer | Ken Dyck <ken.dyck@onsemi.com> | 2009-11-18 20:05:48 +0000 |
commit | 24cfcf15c37d2fa9cd994e83340d26680f938d1a (patch) | |
tree | 94009e115ebad42ce916fafb5946867898ff245b /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | fa01168a5ce99ccf874d879f9abae660916907d8 (diff) | |
download | bcm5719-llvm-24cfcf15c37d2fa9cd994e83340d26680f938d1a.tar.gz bcm5719-llvm-24cfcf15c37d2fa9cd994e83340d26680f938d1a.zip |
Predefine __INTPTR_WIDTH__ for future use in stdint.h.
llvm-svn: 89231
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r-- | clang/lib/Frontend/InitPreprocessor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp index f0b2e08da3a..b77c24093f5 100644 --- a/clang/lib/Frontend/InitPreprocessor.cpp +++ b/clang/lib/Frontend/InitPreprocessor.cpp @@ -391,6 +391,7 @@ static void InitializePredefinedMacros(const TargetInfo &TI, DefineTypeWidth("__INTMAX_WIDTH__", TI.getIntMaxType(), TI, Buf); DefineType("__PTRDIFF_TYPE__", TI.getPtrDiffType(0), Buf); DefineType("__INTPTR_TYPE__", TI.getIntPtrType(), Buf); + DefineTypeWidth("__INTPTR_WIDTH__", TI.getIntPtrType(), TI, Buf); DefineType("__SIZE_TYPE__", TI.getSizeType(), Buf); DefineType("__WCHAR_TYPE__", TI.getWCharType(), Buf); DefineType("__WINT_TYPE__", TI.getWIntType(), Buf); |