forked from OSchip/llvm-project
[driver][mips] Use AddTargetFeature to check arguments and add feature flags. NFC
llvm-svn: 307152
This commit is contained in:
parent
3369438ef4
commit
6a9570c282
|
@ -297,13 +297,8 @@ void mips::getMIPSTargetFeatures(const Driver &D, const llvm::Triple &Triple,
|
|||
|
||||
AddTargetFeature(Args, Features, options::OPT_mno_odd_spreg,
|
||||
options::OPT_modd_spreg, "nooddspreg");
|
||||
|
||||
if (Arg *A = Args.getLastArg(options::OPT_mmadd4, options::OPT_mno_madd4)) {
|
||||
if (A->getOption().matches(options::OPT_mmadd4))
|
||||
Features.push_back("-nomadd4");
|
||||
else
|
||||
Features.push_back("+nomadd4");
|
||||
}
|
||||
AddTargetFeature(Args, Features, options::OPT_mno_madd4, options::OPT_mmadd4,
|
||||
"nomadd4");
|
||||
}
|
||||
|
||||
mips::NanEncoding mips::getSupportedNanEncoding(StringRef &CPU) {
|
||||
|
|
Loading…
Reference in New Issue