Skip to content

Commit 635e154

Browse files
authored
Remove check for Android in Mips.cpp (llvm#123793)
1 parent b821aae commit 635e154

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

clang/lib/Driver/ToolChains/Arch/Mips.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,6 @@ void mips::getMIPSTargetFeatures(const Driver &D, const llvm::Triple &Triple,
366366
} else if (mips::shouldUseFPXX(Args, Triple, CPUName, ABIName, FloatABI)) {
367367
Features.push_back("+fpxx");
368368
Features.push_back("+nooddspreg");
369-
} else if (mips::isFP64ADefault(Triple, CPUName)) {
370-
Features.push_back("+fp64");
371-
Features.push_back("+nooddspreg");
372369
} else if (Arg *A = Args.getLastArg(options::OPT_mmsa)) {
373370
if (A->getOption().matches(options::OPT_mmsa))
374371
Features.push_back("+fp64");
@@ -465,16 +462,6 @@ bool mips::isNaN2008(const Driver &D, const ArgList &Args,
465462
.Default(false);
466463
}
467464

468-
bool mips::isFP64ADefault(const llvm::Triple &Triple, StringRef CPUName) {
469-
if (!Triple.isAndroid())
470-
return false;
471-
472-
// Android MIPS32R6 defaults to FP64A.
473-
return llvm::StringSwitch<bool>(CPUName)
474-
.Case("mips32r6", true)
475-
.Default(false);
476-
}
477-
478465
bool mips::isFPXXDefault(const llvm::Triple &Triple, StringRef CPUName,
479466
StringRef ABIName, mips::FloatABI FloatABI) {
480467
if (ABIName != "32")

clang/lib/Driver/ToolChains/Arch/Mips.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ bool hasMipsAbiArg(const llvm::opt::ArgList &Args, const char *Value);
4646
bool isUCLibc(const llvm::opt::ArgList &Args);
4747
bool isNaN2008(const Driver &D, const llvm::opt::ArgList &Args,
4848
const llvm::Triple &Triple);
49-
bool isFP64ADefault(const llvm::Triple &Triple, StringRef CPUName);
5049
bool isFPXXDefault(const llvm::Triple &Triple, StringRef CPUName,
5150
StringRef ABIName, mips::FloatABI FloatABI);
5251
bool shouldUseFPXX(const llvm::opt::ArgList &Args, const llvm::Triple &Triple,

0 commit comments

Comments
 (0)