summaryrefslogtreecommitdiff
path: root/test/Driver/darwin-debug-flags.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-12-18 02:43:17 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-12-18 02:43:17 +0000
commitf2d8b9f967a1ab53ee9fdbcc3ac0a4ee0a83a26e (patch)
treea895667ec91441fddff4eba4440bd06b6195c9fc /test/Driver/darwin-debug-flags.c
parentdd5614b18cbe4c528b0589b4ba722346bdb9fcce (diff)
downloadclang-f2d8b9f967a1ab53ee9fdbcc3ac0a4ee0a83a26e.tar.gz
clang-f2d8b9f967a1ab53ee9fdbcc3ac0a4ee0a83a26e.tar.bz2
clang-f2d8b9f967a1ab53ee9fdbcc3ac0a4ee0a83a26e.tar.xz
Add -dwarf-debug-flags, which provides a way to embed the cc1 level options used
to compile a translation unit into the debug info for that file. - Used by parts of Darwin build process to check compiler flags, etc. - <rdar://problem/7256886> clang does not emit AT_APPLE_flags git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91661 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/darwin-debug-flags.c')
-rw-r--r--test/Driver/darwin-debug-flags.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Driver/darwin-debug-flags.c b/test/Driver/darwin-debug-flags.c
new file mode 100644
index 0000000000..86cd5b9a83
--- /dev/null
+++ b/test/Driver/darwin-debug-flags.c
@@ -0,0 +1,11 @@
+// RUN: env RC_DEBUG_OPTIONS=1 %clang -ccc-host-triple i386-apple-darwin9 -g -Os %s -emit-llvm -S -o - | FileCheck %s
+// <rdar://problem/7256886>
+
+// CHECK: !1 = metadata !{
+// CHECK: -cc1
+// CHECK: -triple i386-apple-darwin9
+// CHECK: -g
+// CHECK: -Os
+// CHECK: [DW_TAG_compile_unit ]
+
+int x;