[all-commits] [llvm/llvm-project] 842ea7: Debug Info: Store the SDK in the DICompileUnit.

adrian-prantl via All-commits all-commits at lists.llvm.org
Fri Mar 13 11:21:39 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 842ea709e4ed881c2bc59155af5df910eccda9c6
      https://github.com/llvm/llvm-project/commit/842ea709e4ed881c2bc59155af5df910eccda9c6
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2020-03-13 (Fri, 13 Mar 2020)

  Changed paths:
    M clang/lib/CodeGen/CGDebugInfo.cpp
    A clang/test/CodeGen/debug-info-sysroot-sdk.c
    R clang/test/CodeGen/debug-info-sysroot.c

  Log Message:
  -----------
  Debug Info: Store the SDK in the DICompileUnit.

This is another intermediate step for PR44213
(https://bugs.llvm.org/show_bug.cgi?id=44213).

This stores the SDK *name* in the debug info, to make it possible to
`-fdebug-prefix-map`-replace the sysroot with a recognizable string
and allowing the debugger to find a fitting SDK relative to itself,
not the machine the executable was compiled on.

rdar://problem/51645582




More information about the All-commits mailing list