diff options
author | Douglas Katzman <dougk@google.com> | 2015-10-08 04:24:12 +0000 |
---|---|---|
committer | Douglas Katzman <dougk@google.com> | 2015-10-08 04:24:12 +0000 |
commit | adbb8c2aef0d2bb27f0df4383bde4085e460a31e (patch) | |
tree | e4a4ae4ac8bfcebc815b7f8602c4b02f7a8a9a41 /test/Coverage | |
parent | 40bf428a9fc1225210d16e520a7695713ad2c8f6 (diff) |
Stop messing with the 'g' group of options in CompilerInvocation.
With this change, most 'g' options are rejected by CompilerInvocation.
They remain only as Driver options. The new way to request debug info
from cc1 is with "-debug-info-kind={line-tables-only|limited|standalone}"
and "-dwarf-version={2|3|4}". In the absence of a command-line option
to specify Dwarf version, the Toolchain decides it, rather than placing
Toolchain-specific logic in CompilerInvocation.
Also fix a bug in the Windows compatibility argument parsing
in which the "rightmost argument wins" principle failed.
Differential Revision: http://reviews.llvm.org/D13221
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249655 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Coverage')
-rw-r--r-- | test/Coverage/codegen-next.m | 2 | ||||
-rw-r--r-- | test/Coverage/codegen.c | 4 | ||||
-rw-r--r-- | test/Coverage/targets.c | 32 |
3 files changed, 19 insertions, 19 deletions
diff --git a/test/Coverage/codegen-next.m b/test/Coverage/codegen-next.m index 7b907fea0e..5430cf28da 100644 --- a/test/Coverage/codegen-next.m +++ b/test/Coverage/codegen-next.m @@ -1,5 +1,5 @@ // RUN: %clang_cc1 -emit-llvm -fobjc-exceptions -triple x86_64-apple-darwin -o %t %s -// RUN: %clang_cc1 -g -emit-llvm -fobjc-exceptions -triple x86_64-apple-darwin -o %t %s +// RUN: %clang_cc1 -debug-info-kind=limited -emit-llvm -fobjc-exceptions -triple x86_64-apple-darwin -o %t %s // An error could be seen for targeting x86_64-win32; // diff --git a/test/Coverage/codegen.c b/test/Coverage/codegen.c index 8e5195cc39..263e9b4c4e 100644 --- a/test/Coverage/codegen.c +++ b/test/Coverage/codegen.c @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -o %t %s // RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm-bc -o %t %s -// RUN: %clang_cc1 -triple i386-unknown-unknown -g -emit-llvm-bc -o %t %s +// RUN: %clang_cc1 -triple i386-unknown-unknown -debug-info-kind=limited -emit-llvm-bc -o %t %s // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm-bc -o %t %s -// RUN: %clang_cc1 -triple x86_64-unknown-unknown -g -emit-llvm-bc -o %t %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -debug-info-kind=limited -emit-llvm-bc -o %t %s #include "c-language-features.inc" diff --git a/test/Coverage/targets.c b/test/Coverage/targets.c index 14b895ea15..58c635ae74 100644 --- a/test/Coverage/targets.c +++ b/test/Coverage/targets.c @@ -1,19 +1,19 @@ -// RUN: %clang_cc1 -g -triple armv6-apple-darwin9 -emit-llvm -o %t %s -// RUN: %clang_cc1 -g -triple armv6-unknown-unknown -emit-llvm -o %t %s -// RUN: %clang_cc1 -g -triple i686-apple-darwin9 -emit-llvm -o %t %s -// RUN: %clang_cc1 -g -triple i686-pc-linux-gnu -emit-llvm -o %t %s -// RUN: %clang_cc1 -g -triple i686-unknown-dragonfly -emit-llvm -o %t %s -// RUN: %clang_cc1 -g -triple i686-unknown-unknown -emit-llvm -o %t %s -// RUN: %clang_cc1 -g -triple i686-unknown-win32 -emit-llvm -o %t %s -// RUN: %clang_cc1 -g -triple powerpc-apple-darwin9 -emit-llvm -o %t %s -// RUN: %clang_cc1 -g -triple powerpc-unknown-unknown -emit-llvm -o %t %s -// RUN: %clang_cc1 -g -triple powerpc64-apple-darwin9 -emit-llvm -o %t %s -// RUN: %clang_cc1 -g -triple powerpc64-unknown-unknown -emit-llvm -o %t %s -// RUN: %clang_cc1 -g -triple sparc-unknown-solaris -emit-llvm -o %t %s -// RUN: %clang_cc1 -g -triple sparc-unknown-unknown -emit-llvm -o %t %s -// RUN: %clang_cc1 -g -triple x86_64-apple-darwin9 -emit-llvm -o %t %s -// RUN: %clang_cc1 -g -triple x86_64-pc-linux-gnu -emit-llvm -o %t %s -// RUN: %clang_cc1 -g -triple x86_64-unknown-unknown -emit-llvm -o %t %s +// RUN: %clang_cc1 -debug-info-kind=limited -triple armv6-apple-darwin9 -emit-llvm -o %t %s +// RUN: %clang_cc1 -debug-info-kind=limited -triple armv6-unknown-unknown -emit-llvm -o %t %s +// RUN: %clang_cc1 -debug-info-kind=limited -triple i686-apple-darwin9 -emit-llvm -o %t %s +// RUN: %clang_cc1 -debug-info-kind=limited -triple i686-pc-linux-gnu -emit-llvm -o %t %s +// RUN: %clang_cc1 -debug-info-kind=limited -triple i686-unknown-dragonfly -emit-llvm -o %t %s +// RUN: %clang_cc1 -debug-info-kind=limited -triple i686-unknown-unknown -emit-llvm -o %t %s +// RUN: %clang_cc1 -debug-info-kind=limited -triple i686-unknown-win32 -emit-llvm -o %t %s +// RUN: %clang_cc1 -debug-info-kind=limited -triple powerpc-apple-darwin9 -emit-llvm -o %t %s +// RUN: %clang_cc1 -debug-info-kind=limited -triple powerpc-unknown-unknown -emit-llvm -o %t %s +// RUN: %clang_cc1 -debug-info-kind=limited -triple powerpc64-apple-darwin9 -emit-llvm -o %t %s +// RUN: %clang_cc1 -debug-info-kind=limited -triple powerpc64-unknown-unknown -emit-llvm -o %t %s +// RUN: %clang_cc1 -debug-info-kind=limited -triple sparc-unknown-solaris -emit-llvm -o %t %s +// RUN: %clang_cc1 -debug-info-kind=limited -triple sparc-unknown-unknown -emit-llvm -o %t %s +// RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-apple-darwin9 -emit-llvm -o %t %s +// RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-pc-linux-gnu -emit-llvm -o %t %s +// RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-unknown-unknown -emit-llvm -o %t %s // <rdar://problem/7181838> clang 1.0 fails to compile Python 2.6 // RUN: %clang -target x86_64-apple-darwin9 -### -S %s -mmacosx-version-min=10.4 |