[Serialization] Remove `ORIGINAL_PCH_DIR` record
authorArgyrios Kyrtzidis <kyrtzidis@apple.com>
Wed, 3 Aug 2022 22:24:25 +0000 (15:24 -0700)
committerArgyrios Kyrtzidis <kyrtzidis@apple.com>
Fri, 5 Aug 2022 22:40:33 +0000 (15:40 -0700)
commit6635f48e4aba499a7a31c6346cb1351437d36055
tree16b1662b49e3c6133abf92662e67b09fccea1911
parent9ec4ddd224f400e2ec309fa513904525c059cc1e
[Serialization] Remove `ORIGINAL_PCH_DIR` record

Use of `ORIGINAL_PCH_DIR` record has been superseeded by making PCH/PCM files with relocatable paths at write time.
Removing this record is useful for producing an output-path-independent PCH file and enable sharing of the same PCH file even
when it was intended for a different output path.

Differential Revision: https://reviews.llvm.org/D131124
clang/include/clang/Driver/Options.td
clang/include/clang/Frontend/FrontendOptions.h
clang/include/clang/Serialization/ASTBitCodes.h
clang/include/clang/Serialization/ASTWriter.h
clang/include/clang/Serialization/ModuleFile.h
clang/lib/Frontend/FrontendActions.cpp
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTWriter.cpp
clang/lib/Serialization/GeneratePCH.cpp
clang/test/Modules/relative-original-dir.m [deleted file]
clang/test/PCH/pch-output-path-independent.c