diff options
author | David Blaikie <dblaikie@gmail.com> | 2017-02-08 20:51:11 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2017-02-08 20:51:11 +0000 |
commit | ee12322372c07b890aea4faa6f08e86b157b583e (patch) | |
tree | 6b1945ca5624ce56c97cf0eae90d2f7dba47a226 /clang/lib/Frontend/FrontendAction.cpp | |
parent | 28ffd3261ff1ff2c096e8c7136e3f2579f6c07c5 (diff) | |
download | bcm5719-llvm-ee12322372c07b890aea4faa6f08e86b157b583e.tar.gz bcm5719-llvm-ee12322372c07b890aea4faa6f08e86b157b583e.zip |
Initialize builtins during modular codegen
llvm-svn: 294512
Diffstat (limited to 'clang/lib/Frontend/FrontendAction.cpp')
-rw-r--r-- | clang/lib/Frontend/FrontendAction.cpp | 3 |
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)); |