[PATCH] D125180: [Frontend] when attaching a preamble, don't generate the long predefines buffer.

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 9 06:56:22 PDT 2022


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);
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125180.428074.patch
Type: text/x-patch
Size: 563 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220509/323901c5/attachment-0001.bin>


More information about the cfe-commits mailing list