[all-commits] [llvm/llvm-project] 6e22da: [Frontend] avoid copy of PCH data when Precompiled...

Sam McCall via All-commits all-commits at lists.llvm.org
Thu Apr 21 10:53:17 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6e22dac2e2955db1310c63aec215fc22d8da258e
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2022-04-21 (Thu, 21 Apr 2022)

  Changed paths:
    M clang/lib/Frontend/PrecompiledPreamble.cpp

  Log Message:
  [Frontend] avoid copy of PCH data when PrecompiledPreamble stores it in memory

Instead of unconditionally copying the PCHBuffer into an ostream which can be
backed either by a string or a file, just make the PCHBuffer itself the
in-memory storage.

Differential Revision: https://reviews.llvm.org/D124180

More information about the All-commits mailing list