]> granicus.if.org Git - clang/commit
[DebugInfo] Support DWARF v5 source code embedding extension
authorScott Linder <scott@scottlinder.com>
Mon, 26 Feb 2018 17:32:31 +0000 (17:32 +0000)
committerScott Linder <scott@scottlinder.com>
Mon, 26 Feb 2018 17:32:31 +0000 (17:32 +0000)
commit7fab66ed2f7638c119451e5e91adac8afb273277
tree8dc1ab5e230ce1f4642396c23edbb6575b22bc21
parentcf3546e69e119b4ceb8b7f599f341e12a32979d3
[DebugInfo] Support DWARF v5 source code embedding extension

In DWARF v5 the Line Number Program Header is extensible, allowing values with
new content types. This vendor extension to DWARF v5 allows source text to be
embedded directly in the line tables of the debug line section.

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

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326102 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
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 [new file with mode: 0644]
test/CodeGen/debug-info-embed-source.c [new file with mode: 0644]
test/Driver/amdgpu-toolchain.c
test/Driver/debug-options.c