aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/Inputs
diff options
context:
space:
mode:
authorScott Linder <scott@scottlinder.com>2018-02-26 17:32:31 +0000
committerScott Linder <scott@scottlinder.com>2018-02-26 17:32:31 +0000
commita2fbcef8ee7cc4c90cbe2554e36d9cb859965833 (patch)
tree10e3ac019f5c8338c51d02bcd4024f27bdb95251 /clang/test/CodeGen/Inputs
parent2a26a286db424050435d1e8e01c39438d927aa06 (diff)
downloadllvm-a2fbcef8ee7cc4c90cbe2554e36d9cb859965833.zip
llvm-a2fbcef8ee7cc4c90cbe2554e36d9cb859965833.tar.gz
llvm-a2fbcef8ee7cc4c90cbe2554e36d9cb859965833.tar.bz2
[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 llvm-svn: 326102
Diffstat (limited to 'clang/test/CodeGen/Inputs')
-rw-r--r--clang/test/CodeGen/Inputs/debug-info-embed-source.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/CodeGen/Inputs/debug-info-embed-source.c b/clang/test/CodeGen/Inputs/debug-info-embed-source.c
new file mode 100644
index 0000000..2fb55ee
--- /dev/null
+++ b/clang/test/CodeGen/Inputs/debug-info-embed-source.c
@@ -0,0 +1 @@
+void foo() { }