forked from OSchip/llvm-project
[Driver][Mips] MIPS ABI names "32" and "64" used as arguments of the "-mabi"
command line option only. Internally we convert them to the "o32" and "n64" respectively. So we do not need to refer them anywhere after that conversion. No functional changes. llvm-svn: 212096
This commit is contained in:
parent
1a9ea52edb
commit
ad80595b60
|
@ -5524,10 +5524,6 @@ public:
|
|||
ABI = Name;
|
||||
return true;
|
||||
}
|
||||
if (Name == "32") {
|
||||
ABI = "o32";
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
void getTargetDefines(const LangOptions &Opts,
|
||||
|
@ -5663,9 +5659,9 @@ public:
|
|||
ABI = Name;
|
||||
return true;
|
||||
}
|
||||
if (Name == "n64" || Name == "64") {
|
||||
if (Name == "n64") {
|
||||
setN64ABITypes();
|
||||
ABI = "n64";
|
||||
ABI = Name;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -950,8 +950,8 @@ static void getMipsCPUAndABI(const ArgList &Args,
|
|||
if (!ABIName.empty()) {
|
||||
// Deduce CPU name from ABI name.
|
||||
CPUName = llvm::StringSwitch<const char *>(ABIName)
|
||||
.Cases("32", "o32", "eabi", DefMips32CPU)
|
||||
.Cases("n32", "n64", "64", DefMips64CPU)
|
||||
.Cases("o32", "eabi", DefMips32CPU)
|
||||
.Cases("n32", "n64", DefMips64CPU)
|
||||
.Default("");
|
||||
}
|
||||
else if (!CPUName.empty()) {
|
||||
|
|
Loading…
Reference in New Issue