summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2014-07-15 21:58:11 +0000
committerJoerg Sonnenberger <joerg@bec.de>2014-07-15 21:58:11 +0000
commitf6432d83c3bd4ea44f75b5ef89f0c146a077d1c9 (patch)
tree37f6eb433adfa6f5a10b8d0f769df8a3fb4091cd /clang/lib
parent0d89e849bdf96dc424505c1bc84e24d504aee60c (diff)
downloadbcm5719-llvm-f6432d83c3bd4ea44f75b5ef89f0c146a077d1c9.tar.gz
bcm5719-llvm-f6432d83c3bd4ea44f75b5ef89f0c146a077d1c9.zip
Add __INTMAX_C_SUFFIX__ and __UINTMAX_C_SUFFIX__.
llvm-svn: 213097
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Frontend/InitPreprocessor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp
index 091edd4f33e..2d6a3095334 100644
--- a/clang/lib/Frontend/InitPreprocessor.cpp
+++ b/clang/lib/Frontend/InitPreprocessor.cpp
@@ -656,8 +656,12 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
DefineType("__INTMAX_TYPE__", TI.getIntMaxType(), Builder);
DefineFmt("__INTMAX", TI.getIntMaxType(), TI, Builder);
+ Builder.defineMacro("__INTMAX_C_SUFFIX__",
+ TargetInfo::getTypeConstantSuffix(TI.getIntMaxType()));
DefineType("__UINTMAX_TYPE__", TI.getUIntMaxType(), Builder);
DefineFmt("__UINTMAX", TI.getUIntMaxType(), TI, Builder);
+ Builder.defineMacro("__UINTMAX_C_SUFFIX__",
+ TargetInfo::getTypeConstantSuffix(TI.getUIntMaxType()));
DefineTypeWidth("__INTMAX_WIDTH__", TI.getIntMaxType(), TI, Builder);
DefineType("__PTRDIFF_TYPE__", TI.getPtrDiffType(0), Builder);
DefineFmt("__PTRDIFF", TI.getPtrDiffType(0), TI, Builder);
OpenPOWER on IntegriCloud