summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/split-debug.c
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-06-05 23:58:15 +0000
committerEric Christopher <echristo@gmail.com>2013-06-05 23:58:15 +0000
commit30aa6b6243710c02edad4258fda3e4fa9ff59baf (patch)
tree482ce6f4c96b3bb828bb25adcd5acbeb9fbe06d7 /clang/test/Driver/split-debug.c
parent2d73d15f8301b67f5d094cf20e20d4172a67785d (diff)
downloadbcm5719-llvm-30aa6b6243710c02edad4258fda3e4fa9ff59baf.tar.gz
bcm5719-llvm-30aa6b6243710c02edad4258fda3e4fa9ff59baf.zip
If we're splitting the dwarf for fission and don't want to use the
integrated assembler then go ahead and still split the dwarf anyhow. Add two tests, one to exercise existing behavior of not splitting when we're just emitting assembly files and the other to test that we split when we're not in integrated as mode. llvm-svn: 183355
Diffstat (limited to 'clang/test/Driver/split-debug.c')
-rw-r--r--clang/test/Driver/split-debug.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Driver/split-debug.c b/clang/test/Driver/split-debug.c
index d8a9fe841e2..792abbd5525 100644
--- a/clang/test/Driver/split-debug.c
+++ b/clang/test/Driver/split-debug.c
@@ -23,3 +23,13 @@
// RUN: FileCheck -check-prefix=CHECK-OPTION < %t %s
//
// CHECK-OPTION: "-split-dwarf-file" "split-debug.dwo"
+
+// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -S -### %s 2> %t
+// RUN: FileCheck -check-prefix=CHECK-ASM < %t %s
+//
+// CHECK-ASM-NOT: objcopy
+
+// RUN: %clang -target x86_64-unknown-linux-gnu -no-integrated-as -gsplit-dwarf -c -### %s 2> %t
+// RUN: FileCheck -check-prefix=CHECK-IAS < %t %s
+//
+// CHECK-IAS: objcopy
OpenPOWER on IntegriCloud