Author: filcab Date: Wed Oct 14 09:45:36 2015 New Revision: 250298 URL: http://llvm.org/viewvc/llvm-project?rev=250298&view=rev Log: 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. Modified: cfe/trunk/test/Driver/debug-options.c Modified: cfe/trunk/test/Driver/debug-options.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/debug-options.c?rev=250298&r1=250297&r2=250298&view=diff ============================================================================== --- cfe/trunk/test/Driver/debug-options.c (original) +++ cfe/trunk/test/Driver/debug-options.c Wed Oct 14 09:45:36 2015 @@ -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" _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits