summaryrefslogtreecommitdiff
path: root/test/Driver/darwin-debug-flags.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/darwin-debug-flags.c
parent17d481fb97b304a58e45a136e3f3e2a2a22b76c8 (diff)
downloadclang-0234179282d59e6dfccc8b2da72a9a71bf5b6ac3.tar.gz
clang-0234179282d59e6dfccc8b2da72a9a71bf5b6ac3.tar.bz2
clang-0234179282d59e6dfccc8b2da72a9a71bf5b6ac3.tar.xz
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/darwin-debug-flags.c')
-rw-r--r--test/Driver/darwin-debug-flags.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Driver/darwin-debug-flags.c b/test/Driver/darwin-debug-flags.c
index baf28475f8..f98e9ce7bd 100644
--- a/test/Driver/darwin-debug-flags.c
+++ b/test/Driver/darwin-debug-flags.c
@@ -2,6 +2,8 @@
// <rdar://problem/7256886>
// RUN: touch %t.s
// RUN: env RC_DEBUG_OPTIONS=1 %clang -### -target i386-apple-darwin9 -c -g %t.s 2>&1 | FileCheck -check-prefix=S %s
+// <rdar://problem/12955296>
+// RUN: %clang -### -target i386-apple-darwin9 -c -g %t.s 2>&1 | FileCheck -check-prefix=P %s
// CHECK: !0 = metadata !{
// CHECK: -g -Os
@@ -11,3 +13,5 @@
int x;
// S: "-dwarf-debug-flags"
+
+// P: "-dwarf-debug-producer"