aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-04-26 18:57:40 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-04-26 18:57:40 +0000
commit40c0efa5152b2dfd80d0a9e106a89c6231cbe2da (patch)
tree04a018ce3ef250cbc9f179be60652ee5175eff0f /clang/lib/Frontend/InitPreprocessor.cpp
parent088d001f05e62a393fd0ae2fa064db547e28664e (diff)
downloadllvm-40c0efa5152b2dfd80d0a9e106a89c6231cbe2da.zip
llvm-40c0efa5152b2dfd80d0a9e106a89c6231cbe2da.tar.gz
llvm-40c0efa5152b2dfd80d0a9e106a89c6231cbe2da.tar.bz2
Refactor frontend InputKind to prepare for treating module maps as a distinct kind of input.
No functionality change intended. llvm-svn: 301442
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r--clang/lib/Frontend/InitPreprocessor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp
index 0dd04e8..9257dca 100644
--- a/clang/lib/Frontend/InitPreprocessor.cpp
+++ b/clang/lib/Frontend/InitPreprocessor.cpp
@@ -1041,6 +1041,8 @@ void clang::InitializePreprocessor(
// Install things like __POWERPC__, __GNUC__, etc into the macro table.
if (InitOpts.UsePredefines) {
+ // FIXME: This will create multiple definitions for most of the predefined
+ // macros. This is not the right way to handle this.
if (LangOpts.CUDA && PP.getAuxTargetInfo())
InitializePredefinedMacros(*PP.getAuxTargetInfo(), LangOpts, FEOpts,
Builder);