From: Filipe Cabecinhas Date: Wed, 14 Oct 2015 14:45:36 +0000 (+0000) Subject: Tweak a -g related test for the PS4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0fb574b7bb5f18471273c4ad5f58075bb9315d66;p=clang Tweak a -g related test for the PS4 Make sure we're matching what we want: - Always have -generate-arange-section (independent of -g) - Emit a -dwarf-version=... when -g is there. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250298 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/debug-options.c b/test/Driver/debug-options.c index 20a23e2748..8f865f2f5b 100644 --- a/test/Driver/debug-options.c +++ b/test/Driver/debug-options.c @@ -30,7 +30,7 @@ // On the PS4, -g defaults to -gno-column-info, and we always generate the // arange section. // RUN: %clang -### -c %s -target x86_64-scei-ps4 2>&1 \ -// RUN: | FileCheck -check-prefix=G_PS4 %s +// RUN: | FileCheck -check-prefix=NOG_PS4 %s // RUN: %clang -### -c %s -g -target x86_64-scei-ps4 2>&1 \ // RUN: | FileCheck -check-prefix=G_PS4 %s // RUN: %clang -### -c %s -g -target x86_64-scei-ps4 2>&1 \ @@ -98,7 +98,13 @@ // G_DARWIN: "-cc1" // G_DARWIN: "-dwarf-version=2" // +// NOG_PS4: "-cc1" +// NOG_PS4-NOT "-dwarf-version= +// NOG_PS4: "-generate-arange-section" +// NOG_PS4-NOT: "-dwarf-version= +// // G_PS4: "-cc1" +// G_PS4: "-dwarf-version= // G_PS4: "-generate-arange-section" // // G_D2: "-cc1"