[all-commits] [llvm/llvm-project] 079c6d: Correctly initialize the DW_AT_comp_dir attribute ...

adrian-prantl via All-commits all-commits at lists.llvm.org
Fri Mar 20 14:18:29 PDT 2020


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

  Changed paths:
    M clang/lib/CodeGen/CGDebugInfo.cpp
    M clang/test/Modules/debug-info-moduleimport.m
    M clang/test/PCH/debug-info-pch-path.c

  Log Message:
  -----------
  Correctly initialize the DW_AT_comp_dir attribute of Clang module skeleton CUs

Before this patch a Clang module skeleton CU would have a
DW_AT_comp_dir pointing to the directory of the module map file, and
this information was not used by anyone. Even worse, LLDB actually
resolves relative DWO paths by appending it to DW_AT_comp_dir. This
patch sets it to the same directory that is used as the main CU's
compilation directory, which would make the LLDB code work.

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


  Commit: 97f490d87b226b1deade74ec93b4378fb28d26cc
      https://github.com/llvm/llvm-project/commit/97f490d87b226b1deade74ec93b4378fb28d26cc
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2020-03-20 (Fri, 20 Mar 2020)

  Changed paths:
    M clang/lib/CodeGen/CGDebugInfo.cpp
    M clang/test/Modules/ExtDebugInfo.m

  Log Message:
  -----------
  Don't set the isOptimized flag in module skeleton DICompileUnits.

It's not used for anything.


Compare: https://github.com/llvm/llvm-project/compare/417d69595f0c...97f490d87b22


More information about the All-commits mailing list