mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 01:07:04 +08:00
[Frontend] when attaching a preamble, don't generate the long predefines buffer.
We know we're going to overwrite it anyway. It'd be a bit of work to coordinate not generating it at all, but setting this flag avoids generating ~10k of the 13k string. Differential Revision: https://reviews.llvm.org/D125180
This commit is contained in:
@@ -765,6 +765,10 @@ void PrecompiledPreamble::configurePreamble(
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user