[all-commits] [llvm/llvm-project] 122e7a: PCH debug info: Avoid appending the source directo...

adrian-prantl via All-commits all-commits at lists.llvm.org
Mon Oct 21 09:43:22 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 122e7af03df6f4d4f64db016c7183d0045690558
      https://github.com/llvm/llvm-project/commit/122e7af03df6f4d4f64db016c7183d0045690558
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2019-10-21 (Mon, 21 Oct 2019)

  Changed paths:
    M clang/lib/CodeGen/CGDebugInfo.cpp
    A clang/test/PCH/debug-info-pch-container-path.c

  Log Message:
  -----------
  PCH debug info: Avoid appending the source directory to an absolute path

When building a precompiled header in -fmodule-format=obj (i.e.,
`-gmodules) in an absolute path, the locig in
CGDebugInfo::createCompileUnit would unconditionally append the source
directory to the -main-file-name. This patch avoids that behavior for
absolute paths.

rdar://problem/46045865

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

llvm-svn: 375423




More information about the All-commits mailing list