[clang] [clang] Rebuild implicit modules when #embed files change (PR #248220)

Ben Langmuir via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 3 09:47:37 PST 2026


https://github.com/benlangmuir updated https://github.com/llvm/llvm-project/pull/248220

>From c816ba6299593d987c94df9bee9968845971a801 Mon Sep 17 00:00:00 2001
From: Ben Langmuir <blangmuir at apple.com>
Date: Wed, 2 Dec 2026 11:32:40 -0800
Subject: [PATCH 1/3] [clang] Rebuild implicit modules when #embed files change

Files embedded are intentionally not sloc entries, so explicitly track the
embedded files and add them to the AST's input files in ASTWriter. This
ensures implicit modules are rebuilt correctly when they change.

Claude Opus helped with the tests.
---
 clang/docs/ReleaseNotes.md             |  1 +
 clang/include/clang/Lex/Preprocessor.h | 11 ++++
 clang/lib/Lex/PPDirectives.cpp         |  2 +
 clang/lib/Lex/PPMacroExpansion.cpp     |  3 ++
 clang/lib/Serialization/ASTWriter.cpp  | 32 ++++++++++++
 clang/test/Modules/embed.c             | 69 ++++++++++++++++++++++++++
 clang/test/PCH/validate-file-content.m | 23 +++++++++
 7 files changed, 141 insertions(+)
 create mode 100644 clang/test/Modules/embed.c

diff --git a/clang/docs/ReleaseNotes.md b/clang/docs/ReleaseNotes.md
index cd6b483ca7e8c2..16e7b2c2279fd0 100644
--- a/clang/docs/ReleaseNotes.md
+++ b/clang/docs/ReleaseNotes.md
@@ -1022,6 +1022,7 @@ documentation](CIR/index.md) for more information regarding ClangIR's status and
 - Fixed `#embed` of a missing file not being diagnosed if `-MD` is used. (#GH247359)
 - Fixed `__has_embed` return value with `limit` greater than the file size. (#GH247344)
 - Fixed a C2y rejects-valid where only a single `label:` per loop can be used with `break label;`. (#GH246505)
+- Fixed implicit modules not being rebuilt after changes to `#embed` files.
 
 #### Bug Fixes to Compiler Builtins
 
diff --git a/clang/include/clang/Lex/Preprocessor.h b/clang/include/clang/Lex/Preprocessor.h
index 8d15ed7e8afd85..698228f789e08e 100644
--- a/clang/include/clang/Lex/Preprocessor.h
+++ b/clang/include/clang/Lex/Preprocessor.h
@@ -1086,6 +1086,10 @@ class Preprocessor {
   /// imported.
   llvm::SmallSetVector<Module *, 2> AffectingClangModules;
 
+  /// The files that were found by \#embed or __has_embed, in the order they
+  /// were first encountered.
+  llvm::SmallSetVector<FileEntryRef, 2> EmbeddedFiles;
+
   /// The set of known macros exported from modules.
   llvm::UniquingSet<ModuleMacro> ModuleMacros;
 
@@ -1553,6 +1557,13 @@ class Preprocessor {
     return AffectingClangModules;
   }
 
+  /// Get the set of files that were found by \c #embed or \c __has_embed. These
+  /// affect the result of compilation, but are not considered source files in
+  /// \c SourceManager.
+  const llvm::SmallSetVector<FileEntryRef, 2> &getEmbeddedFiles() const {
+    return EmbeddedFiles;
+  }
+
   /// Mark the file as included.
   /// Returns true if this is the first time the file was included.
   bool markIncluded(FileEntryRef File) {
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp
index f88cb9c1173549..b4ca65eac4f62e 100644
--- a/clang/lib/Lex/PPDirectives.cpp
+++ b/clang/lib/Lex/PPDirectives.cpp
@@ -4167,6 +4167,8 @@ void Preprocessor::HandleEmbedDirective(SourceLocation HashLoc,
       Params->getEffectiveOffsetAndSize(BinaryContents.size());
   BinaryContents = BinaryContents.substr(Offset, Size);
 
+  EmbeddedFiles.insert(*MaybeFileRef);
+
   if (Callbacks)
     Callbacks->EmbedDirective(HashLoc, Filename, isAngled, MaybeFileRef,
                               *Params);
diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp
index 6048937677c0db..e4f0d469a655e4 100644
--- a/clang/lib/Lex/PPMacroExpansion.cpp
+++ b/clang/lib/Lex/PPMacroExpansion.cpp
@@ -1311,6 +1311,9 @@ EmbedResult Preprocessor::EvaluateHasEmbed(Token &Tok, IdentifierInfo *II) {
   if (!MaybeFileEntry)
     return EmbedResult::NotFound;
 
+  // The size of a __has_include'd file affects the value, so record it.
+  EmbeddedFiles.insert(*MaybeFileEntry);
+
   if (Params->getEffectiveOffsetAndSize(MaybeFileEntry->getSize()).second == 0)
     return EmbedResult::Empty;
   return EmbedResult::Found;
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index e2cc07902da34a..f725c22c262935 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/lib/Serialization/ASTWriter.cpp
@@ -1961,6 +1961,38 @@ void ASTWriter::WriteInputFiles(SourceManager &SourceMgr) {
       UserFiles.push_back(Entry);
   }
 
+  // Files referenced by #embed or __has_embed are not sloc entries, but their
+  // contents affect the AST.
+  for (FileEntryRef File : PP->getEmbeddedFiles()) {
+    InputFileEntry Entry(File);
+    Entry.IsTopLevel = false;
+    Entry.IsModuleMap = false;
+    // Embed does not differentiate user/system; treating as a user file is more
+    // conservative here, and matches what dependency files do.
+    Entry.IsSystemFile = false;
+    if (SourceMgr.hasFileInfo(File)) {
+      // #embed creates a content cache entry and may have overrides.
+      const auto &Cache = SourceMgr.getOrCreateContentCache(File);
+      Entry.IsTransient = Cache.IsTransient;
+      Entry.BufferOverridden = Cache.BufferOverridden;
+      Entry.trySetContentHash(*PP, [&] { return Cache.getBufferIfLoaded(); });
+    } else {
+      // __has_embed alone will not create a content cache entry.
+      Entry.IsTransient = false;
+      Entry.BufferOverridden = false;
+      std::unique_ptr<MemoryBuffer> MB;
+      Entry.trySetContentHash(*PP, [&]() -> std::optional<MemoryBufferRef> {
+        FileManager &FM = PP->getFileManager();
+        if (auto MBOrErr = FM.getBufferForFile(Entry.File)) {
+          MB = std::move(*MBOrErr);
+          return MB->getMemBufferRef();
+        }
+        return std::nullopt;
+      });
+    }
+    UserFiles.push_back(Entry);
+  }
+
   // FIXME: Make providing input files not in the SourceManager more flexible.
   // The SDKSettings.json file is necessary for correct evaluation of
   // availability annotations.
diff --git a/clang/test/Modules/embed.c b/clang/test/Modules/embed.c
new file mode 100644
index 00000000000000..659b01ea2da1d6
--- /dev/null
+++ b/clang/test/Modules/embed.c
@@ -0,0 +1,69 @@
+// Check that #embed directives from modules work and that modules using #embed
+// and __has_embed are rebuilt correctly.
+
+// RUN: rm -rf %t
+// RUN: split-file %s %t
+
+// DEFINE: %{compile} = %clang_cc1 -std=c23 -fmodules -fimplicit-module-maps \
+// DEFINE:   -fdisable-module-hash -fmodules-cache-path=%t/cache \
+// DEFINE:   -I %t/include --embed-dir=%t/embed-dir -emit-llvm -o - %t/tu.c
+
+// RUN: %{compile} | FileCheck %s --check-prefixes=QUOTED1,ANGLED1,EMPTY
+// RUN: %clang_cc1 -module-file-info %t/cache/M.pcm | FileCheck %s --check-prefix=INPUTS
+
+// INPUTS-DAG: Input file: {{.*}}include{{/|\\}}quoted.bin
+// INPUTS-DAG: Input file: {{.*}}embed-dir{{/|\\}}angled.bin
+// INPUTS-DAG: Input file: {{.*}}include{{/|\\}}maybe_empty.bin
+
+// RUN: cp %t/quoted2.bin %t/include/quoted.bin
+// RUN: %{compile} | FileCheck %s --check-prefixes=QUOTED2,ANGLED1,EMPTY
+
+// RUN: cp %t/angled2.bin %t/embed-dir/angled.bin
+// RUN: %{compile} | FileCheck %s --check-prefixes=QUOTED2,ANGLED2,EMPTY
+
+// RUN: cp %t/nonempty.bin %t/include/maybe_empty.bin
+// RUN: %{compile} | FileCheck %s --check-prefixes=QUOTED2,ANGLED2,NONEMPTY
+
+// QUOTED1-DAG: @quoted = internal constant [{{[0-9]+}} x i8] c"initial quoted
+// QUOTED2-DAG: @quoted = internal constant [{{[0-9]+}} x i8] c"changed quoted contents
+// ANGLED1-DAG: @angled = internal constant [{{[0-9]+}} x i8] c"initial angled
+// ANGLED2-DAG: @angled = internal constant [{{[0-9]+}} x i8] c"changed angled contents
+// EMPTY-DAG: @maybe_empty_is_empty = internal constant i32 1
+// NONEMPTY-DAG: @maybe_empty_is_empty = internal constant i32 0
+
+//--- include/module.modulemap
+module M { header "M.h" }
+
+//--- include/M.h
+static const char quoted[] = {
+#embed "quoted.bin"
+};
+
+static const char angled[] = {
+#embed <angled.bin>
+};
+
+#if __has_embed("maybe_empty.bin") == __STDC_EMBED_EMPTY__
+static const int maybe_empty_is_empty = 1;
+#else
+static const int maybe_empty_is_empty = 0;
+#endif
+
+//--- include/quoted.bin
+initial quoted
+//--- embed-dir/angled.bin
+initial angled
+//--- include/maybe_empty.bin
+//--- quoted2.bin
+changed quoted contents
+//--- angled2.bin
+changed angled contents
+//--- nonempty.bin
+nonempty
+
+//--- tu.c
+#include "M.h"
+
+const char *get_quoted(void) { return quoted; }
+const char *get_angled(void) { return angled; }
+const int *get_maybe_empty_is_empty(void) { return &maybe_empty_is_empty; }
diff --git a/clang/test/PCH/validate-file-content.m b/clang/test/PCH/validate-file-content.m
index 859475b44164ea..abce8ff1c8ac76 100644
--- a/clang/test/PCH/validate-file-content.m
+++ b/clang/test/PCH/validate-file-content.m
@@ -25,4 +25,27 @@
 // CHECK: file '[[M_H:.*[/\\]m\.h]]' has been modified since the precompiled header '[[A_PCH:.*[/\\]a\.pch]]' was built
 // CHECK: note: content changed
 // CHECK: earlier input file validation has covered only user files
+//
+// PCH only: Test that an mtime mismatch without content change is fine
+// RUN: rm -rf %t
+// RUN: mkdir %t
+// RUN: echo 'embed' > %t/e.bin
+// RUN: echo 'has_embed' > %t/h.bin
+// RUN: echo 'const char e[] = {' > %t/a.h
+// RUN: echo '#embed "e.bin"' >> %t/a.h
+// RUN: echo '};' >> %t/a.h
+// RUN: echo '#if __has_embed("h.bin")' >> %t/a.h
+// RUN: echo '#endif' >> %t/a.h
+// RUN: %clang_cc1 -emit-pch -o %t/a.pch -I %t -x objective-c-header %t/a.h -fvalidate-ast-input-files-content
+// RUN: touch -m -a -t 202901010000 %t/e.bin %t/h.bin
+// RUN: %clang_cc1 -fsyntax-only -I %t -include-pch %t/a.pch %s -verify -fvalidate-ast-input-files-content
+//
+// PCH only: Test an mtime mismatch with content change of an #embed
+// RUN: echo 'embeX' > %t/e.bin
+// RUN: touch -m -a -t 202901010000 %t/e.bin
+// RUN: not %clang_cc1 -fsyntax-only -I %t -include-pch %t/a.pch %s -fvalidate-ast-input-files-content 2> %t/stderr
+// RUN: FileCheck %s --check-prefix=EMBED < %t/stderr
+//
+// EMBED: file '{{.*[/\\]}}e.bin' has been modified since the precompiled header '{{.*[/\\]}}a.pch' was built
+// EMBED: note: content changed
 // expected-no-diagnostics

>From eabcb49c67327ff670919a43e50e09db2b7109b9 Mon Sep 17 00:00:00 2001
From: Ben Langmuir <blangmuir at apple.com>
Date: Thu, 3 Dec 2026 09:32:29 -0800
Subject: [PATCH 2/3] Fix regression with __has_embed on file that cannot be
 read

It's unclear if it is desirable, but it's the current behaviour of
clang and gcc that __has_embed is resolved on files that cannot be read, so
avoid changing behaviour even in PCH/modules that use them as inputs.

Independently of whether we want unreadable files to be __has_embedable, this
is slightly better in that it avoids reading such files unnecessarily, and
avoids rebuilding modules when such files change their contents/mtime but not
their size. In principle we could go further and only rebuild if the size
changes between 0 and non-zero, but that would require special handling in the
ASTReader instead of just falling out of existing checks, so I don't think it's
worthwhile.
---
 clang/lib/Serialization/ASTWriter.cpp         | 22 +++++++------
 clang/test/Modules/embed.c                    | 11 ++++++-
 .../PCH/embed___has_embed_unreadable-pch.c    | 31 +++++++++++++++++++
 clang/test/PCH/validate-file-content.m        | 15 +++++++++
 .../embed___has_embed_unreadable.c            | 25 +++++++++++++++
 5 files changed, 93 insertions(+), 11 deletions(-)
 create mode 100644 clang/test/PCH/embed___has_embed_unreadable-pch.c
 create mode 100644 clang/test/Preprocessor/embed___has_embed_unreadable.c

diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index f725c22c262935..6578037c284849 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/lib/Serialization/ASTWriter.cpp
@@ -1851,6 +1851,7 @@ struct InputFileEntry {
   bool BufferOverridden;
   bool IsTopLevel;
   bool IsModuleMap;
+  bool ValidateSizeOnly = false;
   uint32_t ContentHash[2];
 
   InputFileEntry(FileEntryRef File) : File(File) {}
@@ -1980,15 +1981,10 @@ void ASTWriter::WriteInputFiles(SourceManager &SourceMgr) {
       // __has_embed alone will not create a content cache entry.
       Entry.IsTransient = false;
       Entry.BufferOverridden = false;
-      std::unique_ptr<MemoryBuffer> MB;
-      Entry.trySetContentHash(*PP, [&]() -> std::optional<MemoryBufferRef> {
-        FileManager &FM = PP->getFileManager();
-        if (auto MBOrErr = FM.getBufferForFile(Entry.File)) {
-          MB = std::move(*MBOrErr);
-          return MB->getMemBufferRef();
-        }
-        return std::nullopt;
-      });
+      // __has_embed results do not depend on file content, only size, which is
+      // already set on creating of Entry.
+      Entry.ValidateSizeOnly = true;
+      Entry.ContentHash[0] = Entry.ContentHash[1] = 0;
     }
     UserFiles.push_back(Entry);
   }
@@ -2052,11 +2048,17 @@ void ASTWriter::WriteInputFiles(SourceManager &SourceMgr) {
       if (Name == NameAsRequested)
         Name.clear();
 
+      // A stored timestamp of 0 prevents checking both mtime and content hash
+      // in the ASTReader, so only size would be compared.
+      uint64_t Timestamp = 0;
+      if (!Entry.ValidateSizeOnly)
+        Timestamp = getTimestampForOutput(Entry.File.getModificationTime());
+
       RecordData::value_type Record[] = {
           INPUT_FILE,
           InputFileOffsets.size(),
           (uint64_t)Entry.File.getSize(),
-          (uint64_t)getTimestampForOutput(Entry.File.getModificationTime()),
+          Timestamp,
           Entry.BufferOverridden,
           Entry.IsTransient,
           Entry.IsTopLevel,
diff --git a/clang/test/Modules/embed.c b/clang/test/Modules/embed.c
index 659b01ea2da1d6..398414ba072748 100644
--- a/clang/test/Modules/embed.c
+++ b/clang/test/Modules/embed.c
@@ -21,8 +21,17 @@
 // RUN: cp %t/angled2.bin %t/embed-dir/angled.bin
 // RUN: %{compile} | FileCheck %s --check-prefixes=QUOTED2,ANGLED2,EMPTY
 
+// Only the size of a __has_embed file matters, so an mtime change alone should
+// not cause a rebuild.
+// RUN: touch -m -a -t 202901010000 %t/include/maybe_empty.bin
+// RUN: %{compile} -Rmodule-build 2> %t/remarks.txt | FileCheck %s --check-prefixes=QUOTED2,ANGLED2,EMPTY
+// RUN: FileCheck %s --check-prefix=NO_REBUILD --allow-empty < %t/remarks.txt
+// NO_REBUILD-NOT: remark: building module
+
 // RUN: cp %t/nonempty.bin %t/include/maybe_empty.bin
-// RUN: %{compile} | FileCheck %s --check-prefixes=QUOTED2,ANGLED2,NONEMPTY
+// RUN: %{compile} -Rmodule-build 2> %t/remarks.txt | FileCheck %s --check-prefixes=QUOTED2,ANGLED2,NONEMPTY
+// RUN: FileCheck %s --check-prefix=REBUILD < %t/remarks.txt
+// REBUILD: remark: building module 'M'
 
 // QUOTED1-DAG: @quoted = internal constant [{{[0-9]+}} x i8] c"initial quoted
 // QUOTED2-DAG: @quoted = internal constant [{{[0-9]+}} x i8] c"changed quoted contents
diff --git a/clang/test/PCH/embed___has_embed_unreadable-pch.c b/clang/test/PCH/embed___has_embed_unreadable-pch.c
new file mode 100644
index 00000000000000..95d676fe1611f0
--- /dev/null
+++ b/clang/test/PCH/embed___has_embed_unreadable-pch.c
@@ -0,0 +1,31 @@
+// Check that __has_embed only needs to stat the file, not read it when writing
+// a PCH, which records the file as an input.
+
+// UNSUPPORTED: system-windows
+
+// RUN: rm -rf %t
+// RUN: split-file %s %t
+// RUN: chmod 000 %t/empty.bin %t/nonempty.bin
+
+// RUN: %clang_cc1 -std=c23 -emit-pch -x c-header %t/has_embed.h -o %t/normal.pch
+// RUN: %clang_cc1 -std=c23 -fsyntax-only %t/tu.c -include-pch %t/normal.pch -verify
+
+// RUN: %clang_cc1 -std=c23 -emit-pch -x c-header -I %t %t/has_embed.h -o %t/content.pch -fvalidate-ast-input-files-content
+// RUN: %clang_cc1 -std=c23 -fsyntax-only -I %t %t/tu.c -include-pch %t/content.pch -verify -fvalidate-ast-input-files-content
+
+//--- empty.bin
+//--- nonempty.bin
+nonempty
+//--- has_embed.h
+#if __has_embed("nonempty.bin") != __STDC_EMBED_FOUND__
+#error nonempty.bin should be found
+#endif
+#if __has_embed("nonempty.bin" limit(0)) != __STDC_EMBED_EMPTY__
+#error nonempty.bin with limit(0) should be empty
+#endif
+#if __has_embed("empty.bin") != __STDC_EMBED_EMPTY__
+#error empty.bin should be empty
+#endif
+
+//--- tu.c
+// expected-no-diagnostics
diff --git a/clang/test/PCH/validate-file-content.m b/clang/test/PCH/validate-file-content.m
index abce8ff1c8ac76..07e6b6ed78e27d 100644
--- a/clang/test/PCH/validate-file-content.m
+++ b/clang/test/PCH/validate-file-content.m
@@ -40,6 +40,21 @@
 // RUN: touch -m -a -t 202901010000 %t/e.bin %t/h.bin
 // RUN: %clang_cc1 -fsyntax-only -I %t -include-pch %t/a.pch %s -verify -fvalidate-ast-input-files-content
 //
+// PCH only: Test that a content change of a __has_embed file is fine as long as
+// the size is the same, since only the size affects the result
+// RUN: echo 'has_embeX' > %t/h.bin
+// RUN: touch -m -a -t 202901010000 %t/h.bin
+// RUN: %clang_cc1 -fsyntax-only -I %t -include-pch %t/a.pch %s -verify -fvalidate-ast-input-files-content
+//
+// PCH only: Test a size change of a __has_embed file
+// RUN: echo 'has_embed changed' > %t/h.bin
+// RUN: not %clang_cc1 -fsyntax-only -I %t -include-pch %t/a.pch %s -fvalidate-ast-input-files-content 2> %t/stderr
+// RUN: FileCheck %s --check-prefix=HAS_EMBED < %t/stderr
+// RUN: echo 'has_embed' > %t/h.bin
+//
+// HAS_EMBED: file '{{.*[/\\]}}h.bin' has been modified since the precompiled header '{{.*[/\\]}}a.pch' was built
+// HAS_EMBED: note: size changed
+//
 // PCH only: Test an mtime mismatch with content change of an #embed
 // RUN: echo 'embeX' > %t/e.bin
 // RUN: touch -m -a -t 202901010000 %t/e.bin
diff --git a/clang/test/Preprocessor/embed___has_embed_unreadable.c b/clang/test/Preprocessor/embed___has_embed_unreadable.c
new file mode 100644
index 00000000000000..01d211ee9b449a
--- /dev/null
+++ b/clang/test/Preprocessor/embed___has_embed_unreadable.c
@@ -0,0 +1,25 @@
+// Check that __has_embed only needs to stat the file, not read it.
+
+// UNSUPPORTED: system-windows
+
+// RUN: rm -rf %t
+// RUN: split-file %s %t
+// RUN: chmod 000 %t/empty.bin %t/nonempty.bin
+
+// RUN: %clang_cc1 -std=c23 -fsyntax-only %t/tu.c -verify
+
+//--- empty.bin
+//--- nonempty.bin
+nonempty
+//--- tu.c
+#if __has_embed("nonempty.bin") != __STDC_EMBED_FOUND__
+#error nonempty.bin should be found
+#endif
+#if __has_embed("nonempty.bin" limit(0)) != __STDC_EMBED_EMPTY__
+#error nonempty.bin with limit(0) should be empty
+#endif
+#if __has_embed("empty.bin") != __STDC_EMBED_EMPTY__
+#error empty.bin should be empty
+#endif
+
+// expected-no-diagnostics

>From 30e22b3c901b9c682c461f3a76b0d4f76a8db582 Mon Sep 17 00:00:00 2001
From: Ben Langmuir <blangmuir at apple.com>
Date: Thu, 3 Dec 2026 09:46:56 -0800
Subject: [PATCH 3/3] clang-format

---
 clang/lib/Serialization/ASTWriter.cpp | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index 6578037c284849..92dd1d79e340a6 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/lib/Serialization/ASTWriter.cpp
@@ -2054,16 +2054,15 @@ void ASTWriter::WriteInputFiles(SourceManager &SourceMgr) {
       if (!Entry.ValidateSizeOnly)
         Timestamp = getTimestampForOutput(Entry.File.getModificationTime());
 
-      RecordData::value_type Record[] = {
-          INPUT_FILE,
-          InputFileOffsets.size(),
-          (uint64_t)Entry.File.getSize(),
-          Timestamp,
-          Entry.BufferOverridden,
-          Entry.IsTransient,
-          Entry.IsTopLevel,
-          Entry.IsModuleMap,
-          NameAsRequested.size()};
+      RecordData::value_type Record[] = {INPUT_FILE,
+                                         InputFileOffsets.size(),
+                                         (uint64_t)Entry.File.getSize(),
+                                         Timestamp,
+                                         Entry.BufferOverridden,
+                                         Entry.IsTransient,
+                                         Entry.IsTopLevel,
+                                         Entry.IsModuleMap,
+                                         NameAsRequested.size()};
 
       Stream.EmitRecordWithBlob(IFAbbrevCode, Record,
                                 (NameAsRequested + Name).str());



More information about the cfe-commits mailing list