[clang-cl] Allow use of -gline-tables-only

llvm-svn: 263816
This commit is contained in:
Reid Kleckner 2016-03-18 18:42:56 +00:00
parent 0143146514
commit 72a9d15aba
2 changed files with 5 additions and 1 deletions

View File

@ -1173,7 +1173,7 @@ def fdebug_prefix_map_EQ
def g_Flag : Flag<["-"], "g">, Group<g_Group>, def g_Flag : Flag<["-"], "g">, Group<g_Group>,
HelpText<"Generate source-level debug information">; HelpText<"Generate source-level debug information">;
def gline_tables_only : Flag<["-"], "gline-tables-only">, Group<gN_Group>, def gline_tables_only : Flag<["-"], "gline-tables-only">, Group<gN_Group>,
HelpText<"Emit debug line number tables only">; Flags<[CoreOption]>, HelpText<"Emit debug line number tables only">;
def gmlt : Flag<["-"], "gmlt">, Alias<gline_tables_only>; def gmlt : Flag<["-"], "gmlt">, Alias<gline_tables_only>;
def g0 : Flag<["-"], "g0">, Group<gN_Group>; def g0 : Flag<["-"], "g0">, Group<gN_Group>;
def g1 : Flag<["-"], "g1">, Group<gN_Group>, Alias<gline_tables_only>; def g1 : Flag<["-"], "g1">, Group<gN_Group>, Alias<gline_tables_only>;

View File

@ -394,6 +394,10 @@
// Z7: "-gcodeview" // Z7: "-gcodeview"
// Z7: "-debug-info-kind=limited" // Z7: "-debug-info-kind=limited"
// RUN: %clang_cl -gline-tables-only /Z7 /c -### -- %s 2>&1 | FileCheck -check-prefix=Z7GMLT %s
// Z7GMLT: "-gcodeview"
// Z7GMLT: "-debug-info-kind=line-tables-only"
// RUN: %clang_cl /c -### -- %s 2>&1 | FileCheck -check-prefix=BreproDefault %s // RUN: %clang_cl /c -### -- %s 2>&1 | FileCheck -check-prefix=BreproDefault %s
// BreproDefault: "-mincremental-linker-compatible" // BreproDefault: "-mincremental-linker-compatible"