summaryrefslogtreecommitdiff
path: root/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
commit0234179282d59e6dfccc8b2da72a9a71bf5b6ac3 (patch)
tree2bf8cdfb1a86dbc90ddd81f3518396a0f4bc890d /test/Driver/debug-options-as.c
parent17d481fb97b304a58e45a136e3f3e2a2a22b76c8 (diff)
downloadclang-0234179282d59e6dfccc8b2da72a9a71bf5b6ac3.tar.gz
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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172758 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/debug-options-as.c')
-rw-r--r--test/Driver/debug-options-as.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Driver/debug-options-as.c b/test/Driver/debug-options-as.c
index f512f1523b..0b639b2959 100644
--- a/test/Driver/debug-options-as.c
+++ b/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"