From: Simon Atanasyan Date: Tue, 26 Nov 2013 11:57:58 +0000 (+0000) Subject: [Mips] Replace explicit argument handling by the single ArgList::AddLastArg() call. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=557a847ea8f636cb7161a3b221865a1f21beb973;p=clang [Mips] Replace explicit argument handling by the single ArgList::AddLastArg() call. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195755 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index d3314eb180..a43f71b206 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -6180,13 +6180,7 @@ void gnutools::Assemble::ConstructJob(Compilation &C, const JobAction &JA, CmdArgs.push_back(Args.MakeArgString("-mnan=2008")); } - if (Arg *A = Args.getLastArg(options::OPT_mfp32, options::OPT_mfp64)) { - if (A->getOption().matches(options::OPT_mfp32)) - CmdArgs.push_back(Args.MakeArgString("-mfp32")); - else - CmdArgs.push_back(Args.MakeArgString("-mfp64")); - } - + Args.AddLastArg(CmdArgs, options::OPT_mfp32, options::OPT_mfp64); Args.AddLastArg(CmdArgs, options::OPT_mips16, options::OPT_mno_mips16); Args.AddLastArg(CmdArgs, options::OPT_mmicromips, options::OPT_mno_micromips);