[all-commits] [llvm/llvm-project] 60590b: [Remarks][Driver] Ask for line tables when remarks...

Visoiu Mistrih Francis via All-commits all-commits at lists.llvm.org
Wed Dec 11 17:59:55 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 60590b149b33eb80d0b52c1c6723fe35817ee897
      https://github.com/llvm/llvm-project/commit/60590b149b33eb80d0b52c1c6723fe35817ee897
  Author: Francis Visoiu Mistrih <francisvm at yahoo.com>
  Date:   2019-12-11 (Wed, 11 Dec 2019)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/debug-options.c

  Log Message:
  -----------
  [Remarks][Driver] Ask for line tables when remarks are enabled

Serialized remarks contain debug locations for each remark, by storing a
file path, a line, and a column.

Also, remarks support being embedded in a .dSYM bundle using a separate
section in object files, that is found by `dsymutil` through the debug
map.

In order for tools to map addresses to source and display remarks in the
source, we need line tables, and in order for `dsymutil` to find the
object files containing the remark section, we need to keep the debug
map around.

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




More information about the All-commits mailing list