summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/debug-options-as.c
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2013-01-17 21:38:06 +0000
committerKevin Enderby <enderby@apple.com>2013-01-17 21:38:06 +0000
commitae2ec4745fc102e77b45057269fe68cbe797d0b2 (patch)
treee993920fc2d60daf817b2f131d61b97ba3710c06 /clang/test/Driver/debug-options-as.c
parentbcba2b2b7507d997742eaf1aa108b91d28b84fce (diff)
downloadbcm5719-llvm-ae2ec4745fc102e77b45057269fe68cbe797d0b2.tar.gz
bcm5719-llvm-ae2ec4745fc102e77b45057269fe68cbe797d0b2.zip
We want the dwarf AT_producer for assembly source files to match clang's
AT_producer. Which includes clang's version information so we can tell which version of the compiler was used. This is second of the two steps to allow us to do this. The first was a change to llvm-mc with revision 172630 to provide a method to set the AT_producer string. This second step has the clang driver passing the value of getClangFullVersion() via the new flag -dwarf-debug-producer when invoking the integrated assembler on assembly source files. Then using the new setDwarfDebugProducer() method to set the AT_producer string. rdar://12888242 llvm-svn: 172758
Diffstat (limited to 'clang/test/Driver/debug-options-as.c')
-rw-r--r--clang/test/Driver/debug-options-as.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Driver/debug-options-as.c b/clang/test/Driver/debug-options-as.c
index f512f1523bc..0b639b2959c 100644
--- a/clang/test/Driver/debug-options-as.c
+++ b/clang/test/Driver/debug-options-as.c
@@ -18,3 +18,12 @@
//
// CHECK: "-cc1as"
// CHECK: "-g"
+
+// Check to make sure clang with -g on a .s file gets passed -dwarf-debug-producer.
+// rdar://12955296
+// RUN: touch %t.s
+// RUN: %clang -### -c -integrated-as -g %t.s 2>&1 \
+// RUN: | FileCheck -check-prefix=P %s
+//
+// P: "-cc1as"
+// P: "-dwarf-debug-producer"
OpenPOWER on IntegriCloud