[all-commits] [llvm/llvm-project] 944a86: [ASTWriter] Provide capability to output a PCM/PCH...

Argyrios Kyrtzidis via All-commits all-commits at lists.llvm.org
Fri Jul 29 15:22:08 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 944a86de7c504121da8958b37b7fe8fff53d43a2
      https://github.com/llvm/llvm-project/commit/944a86de7c504121da8958b37b7fe8fff53d43a2
  Author: Argyrios Kyrtzidis <kyrtzidis at apple.com>
  Date:   2022-07-29 (Fri, 29 Jul 2022)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/include/clang/Frontend/FrontendOptions.h
    M clang/include/clang/Serialization/ASTWriter.h
    M clang/lib/Frontend/FrontendActions.cpp
    M clang/lib/Serialization/ASTWriter.cpp
    M clang/lib/Serialization/GeneratePCH.cpp
    A clang/test/PCH/pch-output-path-independent.c

  Log Message:
  -----------
  [ASTWriter] Provide capability to output a PCM/PCH file that does not write out information about its output path

This is useful to enable sharing of the same PCH file even when it's intended for a different output path.

The only information this option disables writing is for `ORIGINAL_PCH_DIR` record which is treated as optional and (when present) used as fallback for resolving input file paths relative to it.

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




More information about the All-commits mailing list