summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2017-02-08 20:51:11 +0000
committerDavid Blaikie <dblaikie@gmail.com>2017-02-08 20:51:11 +0000
commitee12322372c07b890aea4faa6f08e86b157b583e (patch)
tree6b1945ca5624ce56c97cf0eae90d2f7dba47a226 /clang/lib/Frontend
parent28ffd3261ff1ff2c096e8c7136e3f2579f6c07c5 (diff)
downloadbcm5719-llvm-ee12322372c07b890aea4faa6f08e86b157b583e.tar.gz
bcm5719-llvm-ee12322372c07b890aea4faa6f08e86b157b583e.zip
Initialize builtins during modular codegen
llvm-svn: 294512
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r--clang/lib/Frontend/FrontendAction.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Frontend/FrontendAction.cpp b/clang/lib/Frontend/FrontendAction.cpp
index 261b3c4fa4a..ed9bb5e77d6 100644
--- a/clang/lib/Frontend/FrontendAction.cpp
+++ b/clang/lib/Frontend/FrontendAction.cpp
@@ -225,6 +225,9 @@ bool FrontendAction::BeginSourceFile(CompilerInstance &CI,
CI.setFileManager(&AST->getFileManager());
CI.setSourceManager(&AST->getSourceManager());
CI.setPreprocessor(AST->getPreprocessorPtr());
+ Preprocessor &PP = CI.getPreprocessor();
+ PP.getBuiltinInfo().initializeBuiltins(PP.getIdentifierTable(),
+ PP.getLangOpts());
CI.setASTContext(&AST->getASTContext());
setCurrentInput(Input, std::move(AST));
OpenPOWER on IntegriCloud