summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-03-11 21:05:26 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-03-11 21:05:26 +0000
commit29559b1efacd5c8bce1ae46365f2c986b2cc1298 (patch)
treebefb38b04b845606d5f801d91c5fa07b8c967875 /clang/lib/Driver/Tools.cpp
parent7e1fd018a8c1a9e192616195419f41787c41249b (diff)
downloadbcm5719-llvm-29559b1efacd5c8bce1ae46365f2c986b2cc1298.tar.gz
bcm5719-llvm-29559b1efacd5c8bce1ae46365f2c986b2cc1298.zip
Driver: Support -gmlt as an alias for -gline-tables-only
llvm-svn: 203603
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r--clang/lib/Driver/Tools.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index d76ff5cde05..537390a7da3 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -2693,7 +2693,8 @@ 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)) {
+ if (A->getOption().matches(options::OPT_gline_tables_only) ||
+ A->getOption().matches(options::OPT_gmlt)) {
// FIXME: we should support specifying dwarf version with
// -gline-tables-only.
CmdArgs.push_back("-gline-tables-only");
OpenPOWER on IntegriCloud