[clang] [llvm] [clang][Modules][Serialization] Avoid serializing duplicate source location entries for shared input files (PR #209795)

Ayokunle Amodu via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 17 06:22:52 PDT 2026


================
@@ -1448,6 +1448,38 @@ class ASTReader : public ExternalPreprocessorSource,
     const StringRef &operator*() && = delete;
   };
 
+public:
+  /// Returns where a loaded module keeps the input file with path \p Path and
+  /// size \p Size, or an invalid \c FID if no loaded module has the file.
+  serialization::InputFileLoc getLoadedFileLoc(StringRef Path, off_t Size);
+
+private:
+  struct LoadedInputFile {
----------------
ayokunle321 wrote:

Applied

https://github.com/llvm/llvm-project/pull/209795


More information about the llvm-commits mailing list