summaryrefslogtreecommitdiff
path: root/test/CodeGen/split-debug-inlining.c
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2016-08-24 18:29:58 +0000
committerDavid Blaikie <dblaikie@gmail.com>2016-08-24 18:29:58 +0000
commitba62c3b9c934c96a4d392b40a89a10fdc2fa3de2 (patch)
treee74844c784d4e06ed8f3111460454942b1730640 /test/CodeGen/split-debug-inlining.c
parent37afcb099ac2b001f4c826da7ca1d077b67a508c (diff)
downloadclang-ba62c3b9c934c96a4d392b40a89a10fdc2fa3de2.tar.gz
DebugInfo: Add flag to CU to disable emission of inline debug info into the skeleton CU
In cases where .dwo/.dwp files are guaranteed to be available, skipping the extra online (in the .o file) inline info can save a substantial amount of space - see the original r221306 for more details there. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@279651 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/split-debug-inlining.c')
-rw-r--r--test/CodeGen/split-debug-inlining.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/split-debug-inlining.c b/test/CodeGen/split-debug-inlining.c
new file mode 100644
index 0000000000..4a306d43e9
--- /dev/null
+++ b/test/CodeGen/split-debug-inlining.c
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -debug-info-kind=limited -fno-split-dwarf-inlining -S -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -debug-info-kind=limited -S -emit-llvm -o - %s | FileCheck --check-prefix=ABSENT %s
+void f(void) {}
+// Verify that disabling split debug inlining info is propagated to the debug
+// info metadata.
+// CHECK: !DICompileUnit({{.*}}, splitDebugInlining: false
+// ABSENT-NOT: splitDebugInlining