diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2017-02-27 02:06:18 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2017-02-27 02:06:18 +0000 |
commit | 7b5d910c661117c6ea17596ba9c66ceafe005897 (patch) | |
tree | c77ab7e2afcc95968ece9f034676789248c055d4 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 681472cd0f2022b4196634a260d8cd95d84681e8 (diff) | |
download | bcm5719-llvm-7b5d910c661117c6ea17596ba9c66ceafe005897.tar.gz bcm5719-llvm-7b5d910c661117c6ea17596ba9c66ceafe005897.zip |
Add a cc1 flag for setting the existing Preprocessor option 'AllowPCHWithCompilerErrors'.
llvm-svn: 296306
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 2ef96398c0d..59db36d508c 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -2296,6 +2296,7 @@ static void ParsePreprocessorArgs(PreprocessorOptions &Opts, ArgList &Args, Opts.UsePredefines = !Args.hasArg(OPT_undef); Opts.DetailedRecord = Args.hasArg(OPT_detailed_preprocessing_record); Opts.DisablePCHValidation = Args.hasArg(OPT_fno_validate_pch); + Opts.AllowPCHWithCompilerErrors = Args.hasArg(OPT_fallow_pch_with_errors); Opts.DumpDeserializedPCHDecls = Args.hasArg(OPT_dump_deserialized_pch_decls); for (const Arg *A : Args.filtered(OPT_error_on_deserialized_pch_decl)) |