summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/split-debug.c
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2016-08-31 20:54:35 +0000
committerDavid Blaikie <dblaikie@gmail.com>2016-08-31 20:54:35 +0000
commit37dcf6bf9754ea87045453f536c9ebdb0358e24c (patch)
treeb4f37470750333f453e891a06553caa47994af36 /clang/test/Driver/split-debug.c
parente3ea001ec8cd0770cff9d5e33ce269e409b1e70b (diff)
downloadbcm5719-llvm-37dcf6bf9754ea87045453f536c9ebdb0358e24c.tar.gz
bcm5719-llvm-37dcf6bf9754ea87045453f536c9ebdb0358e24c.zip
DebugInfo: Fix -gsplit-dwarf + -fno-split-dwarf-inlining
I tested the cases involving split-dwarf + gmlt + no-split-dwarf-inlining, but didn't verify the simpler case without gmlt. The logic is, admittedly, a little hairy, but seems about as simple as I could wrangle it. llvm-svn: 280290
Diffstat (limited to 'clang/test/Driver/split-debug.c')
-rw-r--r--clang/test/Driver/split-debug.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Driver/split-debug.c b/clang/test/Driver/split-debug.c
index 6c69346646a..eaa1e990c04 100644
--- a/clang/test/Driver/split-debug.c
+++ b/clang/test/Driver/split-debug.c
@@ -47,6 +47,13 @@
// CHECK-SPLIT-WITH-GMLT: "-debug-info-kind=line-tables-only"
// CHECK-SPLIT-WITH-GMLT: "-split-dwarf-file"
+// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -fno-split-dwarf-inlining -S -### %s 2> %t
+// RUN: FileCheck -check-prefix=CHECK-SPLIT-WITH-NOINL < %t %s
+//
+// CHECK-SPLIT-WITH-NOINL: "-split-dwarf=Enable"
+// CHECK-SPLIT-WITH-NOINL: "-debug-info-kind=limited"
+// CHECK-SPLIT-WITH-NOINL: "-split-dwarf-file"
+
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -gmlt -S -### %s 2> %t
// RUN: FileCheck -check-prefix=CHECK-GMLT-OVER-SPLIT < %t %s
//
OpenPOWER on IntegriCloud