]> granicus.if.org Git - clang/commitdiff
[Mips] Replace explicit argument handling by the single ArgList::AddLastArg() call.
authorSimon Atanasyan <simon@atanasyan.com>
Tue, 26 Nov 2013 11:57:58 +0000 (11:57 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Tue, 26 Nov 2013 11:57:58 +0000 (11:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195755 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index d3314eb180d6d08ec4e05dce14a5b4c59d5a9bf6..a43f71b206c84876d6ad1dd8abd0367eb162328b 100644 (file)
@@ -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);