[all-commits] [llvm/llvm-project] 266ec8: [clang][DebugInfo] Respect fmodule-file-home-is-cw...

Alex via All-commits all-commits at lists.llvm.org
Tue Oct 4 11:26:48 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 266ec801fb23f9f5f1d61ca9466e0805fbdb78a7
      https://github.com/llvm/llvm-project/commit/266ec801fb23f9f5f1d61ca9466e0805fbdb78a7
  Author: Alex Langford <apl at fb.com>
  Date:   2022-10-04 (Tue, 04 Oct 2022)

  Changed paths:
    M clang/lib/CodeGen/CGDebugInfo.cpp
    M clang/test/Modules/module-file-home-is-cwd.m

  Log Message:
  -----------
  [clang][DebugInfo] Respect fmodule-file-home-is-cwd in skeleton CUs for clang modules

When -fmodule-file-home-is-cwd and the path to the PCM is relative, we
shouldn't assume that the path to the PCM is relative to the modulemap
that produced it. To respect the option -fmodule-file-home-is-cwd, we
should assume the path is relative to the current working directory.

Reviewed By: rmaz

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




More information about the All-commits mailing list