r213141 - [Driver][Mips] Reduce code duplication. Remove static isMipsNan2008() function.
Simon Atanasyan
simon at atanasyan.com
Wed Jul 16 05:24:55 PDT 2014
Author: atanasyan
Date: Wed Jul 16 07:24:48 2014
New Revision: 213141
URL: http://llvm.org/viewvc/llvm-project?rev=213141&view=rev
Log:
[Driver][Mips] Reduce code duplication. Remove static isMipsNan2008() function.
Use the tools::mips::isNaN2008() routine instead.
Modified:
cfe/trunk/lib/Driver/ToolChains.cpp
Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=213141&r1=213140&r2=213141&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Wed Jul 16 07:24:48 2014
@@ -1662,11 +1662,6 @@ static bool isMipsFP64(const ArgList &Ar
return A && A->getOption().matches(options::OPT_mfp64);
}
-static bool isMipsNan2008(const ArgList &Args) {
- Arg *A = Args.getLastArg(options::OPT_mnan_EQ);
- return A && A->getValue() == StringRef("2008");
-}
-
struct DetectedMultilibs {
/// The set of multilibs that the detected installation supports.
MultilibSet Multilibs;
@@ -1921,7 +1916,8 @@ static bool findMIPSMultilibs(const llvm
addMultilibFlag(isMicroMips(Args), "mmicromips", Flags);
addMultilibFlag(isMipsFP64(Args), "mfp64", Flags);
addMultilibFlag(!isMipsFP64(Args), "mfp32", Flags);
- addMultilibFlag(isMipsNan2008(Args), "mnan=2008", Flags);
+ addMultilibFlag(tools::mips::isNaN2008(Args, TargetTriple), "mnan=2008",
+ Flags);
addMultilibFlag(tools::mips::hasMipsAbiArg(Args, "n32"), "mabi=n32", Flags);
// Default is to assume mabi=64
bool IsMABI64 =
More information about the cfe-commits
mailing list