summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-10-31 20:25:52 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-10-31 20:25:52 +0000
commit90f454aeb9807c038c7d05dbf1a7482f425c7c7b (patch)
tree3a71e9b271089fea7468b81fd280e9e8066d8fdc /clang
parent1f7deb8908c33632be1c74c9add7c6e6d1d4a852 (diff)
downloadbcm5719-llvm-90f454aeb9807c038c7d05dbf1a7482f425c7c7b.tar.gz
bcm5719-llvm-90f454aeb9807c038c7d05dbf1a7482f425c7c7b.zip
Add comment explaining this mysterious macro name.
llvm-svn: 285631
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Frontend/InitPreprocessor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp
index 5da547e2b54..613248a7f1c 100644
--- a/clang/lib/Frontend/InitPreprocessor.cpp
+++ b/clang/lib/Frontend/InitPreprocessor.cpp
@@ -992,6 +992,9 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
}
if (TI.hasInt128Type() && LangOpts.CPlusPlus && LangOpts.GNUMode) {
+ // For each extended integer type, g++ defines a macro mapping the
+ // index of the type (0 in this case) in some list of extended types
+ // to the type.
Builder.defineMacro("__GLIBCXX_TYPE_INT_N_0", "__int128");
Builder.defineMacro("__GLIBCXX_BITSIZE_INT_N_0", "128");
}
OpenPOWER on IntegriCloud