diff options
author | Ben Langmuir <blangmuir@apple.com> | 2014-02-05 22:21:15 +0000 |
---|---|---|
committer | Ben Langmuir <blangmuir@apple.com> | 2014-02-05 22:21:15 +0000 |
commit | 2cb4a78f9394359e3bb74060774e2245bcb9f4b7 (patch) | |
tree | 712d0ddca4e53867a288b5597be5efec6029a1bf /clang/lib/Frontend/FrontendAction.cpp | |
parent | 87769713cf385f373f3bc1c28913045f49277d7f (diff) | |
download | bcm5719-llvm-2cb4a78f9394359e3bb74060774e2245bcb9f4b7.tar.gz bcm5719-llvm-2cb4a78f9394359e3bb74060774e2245bcb9f4b7.zip |
Add a CC1 option -verify-pch
This option will:
- load the given pch file
- verify it is not out of date by stat'ing dependencies, and
- return 0 on success and non-zero on error
llvm-svn: 200884
Diffstat (limited to 'clang/lib/Frontend/FrontendAction.cpp')
-rw-r--r-- | clang/lib/Frontend/FrontendAction.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/FrontendAction.cpp b/clang/lib/Frontend/FrontendAction.cpp index 0baf3e5e1fb..13a0787e427 100644 --- a/clang/lib/Frontend/FrontendAction.cpp +++ b/clang/lib/Frontend/FrontendAction.cpp @@ -314,6 +314,7 @@ bool FrontendAction::BeginSourceFile(CompilerInstance &CI, CI.getPreprocessorOpts().ImplicitPCHInclude, CI.getPreprocessorOpts().DisablePCHValidation, CI.getPreprocessorOpts().AllowPCHWithCompilerErrors, + /*AllowConfigurationMismatch*/false, DeserialListener); if (!CI.getASTContext().getExternalSource()) goto failure; |