This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG0195163dbae9: [Frontend] when attaching a preamble, don't generate the long predefines buffer. (authored by sammccall).
Changed prior to commit: https://reviews.llvm.org/D125180?vs=427902&id=428074#toc Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D125180/new/ https://reviews.llvm.org/D125180 Files: clang/lib/Frontend/PrecompiledPreamble.cpp Index: clang/lib/Frontend/PrecompiledPreamble.cpp =================================================================== --- clang/lib/Frontend/PrecompiledPreamble.cpp +++ clang/lib/Frontend/PrecompiledPreamble.cpp @@ -765,6 +765,10 @@ PreprocessorOpts.DisablePCHOrModuleValidation = DisableValidationForModuleKind::PCH; + // Don't bother generating the long version of the predefines buffer. + // The preamble is going to overwrite it anyway. + PreprocessorOpts.UsePredefines = false; + setupPreambleStorage(*Storage, PreprocessorOpts, VFS); }
Index: clang/lib/Frontend/PrecompiledPreamble.cpp =================================================================== --- clang/lib/Frontend/PrecompiledPreamble.cpp +++ clang/lib/Frontend/PrecompiledPreamble.cpp @@ -765,6 +765,10 @@ PreprocessorOpts.DisablePCHOrModuleValidation = DisableValidationForModuleKind::PCH; + // Don't bother generating the long version of the predefines buffer. + // The preamble is going to overwrite it anyway. + PreprocessorOpts.UsePredefines = false; + setupPreambleStorage(*Storage, PreprocessorOpts, VFS); }
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits