summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/ChainedIncludesSource.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2014-03-07 07:47:58 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2014-03-07 07:47:58 +0000
commite1974dcd92b0f27e4a8ba54887640b2a93993b40 (patch)
treebbd8e20e8b482ec5577257f8ceda44a2eaab0f1a /clang/lib/Frontend/ChainedIncludesSource.cpp
parent648250a2e50c00eb5c56182a7d2f2b41f74ab16e (diff)
downloadbcm5719-llvm-e1974dcd92b0f27e4a8ba54887640b2a93993b40.tar.gz
bcm5719-llvm-e1974dcd92b0f27e4a8ba54887640b2a93993b40.zip
[Preprocessor] Pass TranslationUnitKind to the preprocessor and if it is TU_Prefix
avoid warning for unused macros. rdar://15034698 llvm-svn: 203213
Diffstat (limited to 'clang/lib/Frontend/ChainedIncludesSource.cpp')
-rw-r--r--clang/lib/Frontend/ChainedIncludesSource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/ChainedIncludesSource.cpp b/clang/lib/Frontend/ChainedIncludesSource.cpp
index ab5c81fb588..1bdd48e1681 100644
--- a/clang/lib/Frontend/ChainedIncludesSource.cpp
+++ b/clang/lib/Frontend/ChainedIncludesSource.cpp
@@ -104,7 +104,7 @@ ChainedIncludesSource::create(CompilerInstance &CI) {
&Clang->getTargetOpts()));
Clang->createFileManager();
Clang->createSourceManager(Clang->getFileManager());
- Clang->createPreprocessor();
+ Clang->createPreprocessor(TU_Prefix);
Clang->getDiagnosticClient().BeginSourceFile(Clang->getLangOpts(),
&Clang->getPreprocessor());
Clang->createASTContext();
OpenPOWER on IntegriCloud