[all-commits] [llvm/llvm-project] ee51e9: [clang] serialize ORIGINAL_PCH_DIR relative to Bas...

Richard Howell via All-commits all-commits at lists.llvm.org
Thu May 12 07:31:33 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ee51e9795a31e1280e30179215c27e09927230e2
      https://github.com/llvm/llvm-project/commit/ee51e9795a31e1280e30179215c27e09927230e2
  Author: Richard Howell <rhow at fb.com>
  Date:   2022-05-12 (Thu, 12 May 2022)

  Changed paths:
    M clang/lib/Serialization/ASTReader.cpp
    M clang/lib/Serialization/ASTWriter.cpp
    A clang/test/Modules/relative-original-dir.m

  Log Message:
  -----------
  [clang] serialize ORIGINAL_PCH_DIR relative to BaseDirectory

This diff changes the serialization of the `ORIGINAL_PCH_DIR`
entry in module files to be serialized relative to the module's
`BaseDirectory`. This will allow for the module to be relocatable
across machines.

The path is restored relative to the module's BaseDirectory on
deserialization.

Reviewed By: urnathan

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




More information about the All-commits mailing list