[all-commits] [llvm/llvm-project] f11056: [clang] serialize SUBMODULE_TOPHEADER relative to ...
Richard Howell via All-commits
all-commits at lists.llvm.org
Thu May 12 07:29:52 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f11056943e56a32d81bb36d11fb5ce8d2b2ce79b
https://github.com/llvm/llvm-project/commit/f11056943e56a32d81bb36d11fb5ce8d2b2ce79b
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-submodule-topheader.m
Log Message:
-----------
[clang] serialize SUBMODULE_TOPHEADER relative to BaseDirectory
This diff changes the serialization of the `SUBMODULE_TOPHEADER`
entry in module files to be serialized relative to the module's
`BaseDirectory`. This matches the behavior of the
`SUBMODULE_HEADER` entry and 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/D124938
More information about the All-commits
mailing list