From a31456a6461bb29e279112f1f6aaf61e560d1cc5 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 25 Mar 2014 20:42:27 +0000 Subject: [PATCH] Use an option alias to implement -gmlt Review feedback from Reid Kleckner on r203603. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204755 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Driver/Options.td | 3 +-- lib/Driver/Tools.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td index 0900649b69..781ec2b74a 100644 --- a/include/clang/Driver/Options.td +++ b/include/clang/Driver/Options.td @@ -898,8 +898,7 @@ def g_Flag : Flag<["-"], "g">, Group, HelpText<"Generate source level debug information">, Flags<[CC1Option]>; def gline_tables_only : Flag<["-"], "gline-tables-only">, Group, HelpText<"Emit debug line number tables only">, Flags<[CC1Option]>; -def gmlt : Flag<["-"], "gmlt">, Group, - HelpText<"Emit debug line number tables only">, Flags<[DriverOption,HelpHidden]>; +def gmlt : Flag<["-"], "gmlt">, Alias; def g0 : Flag<["-"], "g0">, Group; def g1 : Flag<["-"], "g1">, Group; def g2 : Flag<["-"], "g2">, Group; diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index c90fb81f03..ea60551b00 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -2695,8 +2695,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, // are preserved, all other debug options are substituted with "-g". Args.ClaimAllArgs(options::OPT_g_Group); if (Arg *A = Args.getLastArg(options::OPT_g_Group)) { - if (A->getOption().matches(options::OPT_gline_tables_only) || - A->getOption().matches(options::OPT_gmlt)) { + if (A->getOption().matches(options::OPT_gline_tables_only)) { // FIXME: we should support specifying dwarf version with // -gline-tables-only. CmdArgs.push_back("-gline-tables-only"); -- 2.40.0