diff options
author | Chad Rosier <mcrosier@apple.com> | 2011-11-07 19:51:54 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2011-11-07 19:51:54 +0000 |
commit | 55ccbd5fbfc6dce1b93779ba2dac0da259503ae0 (patch) | |
tree | 1f3d1b78babf880e18913b75aeb4ac38995e98eb /lib/Driver/Tools.cpp | |
parent | 8da270e644481a3ddd13f937970b3555332182c9 (diff) |
Tablegenify -g options.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 64b538d145..b459a7a05f 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -1458,22 +1458,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, Args.ClaimAllArgs(options::OPT_g_Group); if (Arg *A = Args.getLastArg(options::OPT_g_Group)) if (!A->getOption().matches(options::OPT_g0)) { - const std::string &ArgString = A->getAsString(Args); - bool Valid_g = llvm::StringSwitch<bool>(ArgString) - .Case("-g", true) - .Case("-g3", true) - .Case("-gdwarf-2", true) - .Case("-gstabs", true) - .Case("-gstabs+", true) - .Case("-gstabs1", true) - .Case("-gstabs2", true) - .Case("-gfull", true) - .Case("-gused", true) - .Default(false); - if (Valid_g) CmdArgs.push_back("-g"); - else - D.Diag(diag::warn_drv_clang_unsupported) << ArgString; } Args.AddAllArgs(CmdArgs, options::OPT_ffunction_sections); |