[PATCH] D42766: [DebugInfo] Support DWARFv5 source code embedding extension

Scott Linder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 31 13:59:26 PST 2018


scott.linder created this revision.
scott.linder added reviewers: echristo, arsenm, aprantl.
Herald added subscribers: cfe-commits, JDevlieghere, nhaehnle, wdng.

In DWARFv5 the Line Number Program Header is extensible, allowing values
with new content types. In this extension source is embedded directly
in the line tables of the DWARFv5 line debug section.

Add new flag (-g[no-]embed-source) to Driver and CC1 which indicates
that source should be passed through to LLVM during CodeGen.

Depends on LLVM review https://reviews.llvm.org/D42765


Repository:
  rC Clang

https://reviews.llvm.org/D42766

Files:
  docs/ClangCommandLineReference.rst
  include/clang/Driver/Options.td
  include/clang/Frontend/CodeGenOptions.def
  lib/CodeGen/CGDebugInfo.cpp
  lib/CodeGen/CGDebugInfo.h
  lib/Driver/ToolChains/AMDGPU.h
  lib/Driver/ToolChains/Clang.cpp
  lib/Frontend/CompilerInvocation.cpp
  test/CodeGen/Inputs/debug-info-embed-source.c
  test/CodeGen/debug-info-embed-source.c
  test/Driver/amdgpu-toolchain.c
  test/Driver/debug-options.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42766.132272.patch
Type: text/x-patch
Size: 10272 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180131/e2fe6a00/attachment-0001.bin>


More information about the cfe-commits mailing list