[mips] Eliminate else-after-return. NFC

llvm-svn: 289331
This commit is contained in:
Simon Atanasyan 2016-12-10 17:30:09 +00:00
parent 327705d17d
commit edd7a7bb40
1 changed files with 3 additions and 4 deletions
llvm/lib/Target/Mips/MCTargetDesc

View File

@ -51,12 +51,11 @@ MipsABIInfo MipsABIInfo::computeTargetABI(const Triple &TT, StringRef CPU,
const MCTargetOptions &Options) { const MCTargetOptions &Options) {
if (Options.getABIName().startswith("o32")) if (Options.getABIName().startswith("o32"))
return MipsABIInfo::O32(); return MipsABIInfo::O32();
else if (Options.getABIName().startswith("n32")) if (Options.getABIName().startswith("n32"))
return MipsABIInfo::N32(); return MipsABIInfo::N32();
else if (Options.getABIName().startswith("n64")) if (Options.getABIName().startswith("n64"))
return MipsABIInfo::N64(); return MipsABIInfo::N64();
else if (!Options.getABIName().empty()) assert(Options.getABIName().empty() && "Unknown ABI option for MIPS");
llvm_unreachable("Unknown ABI option for MIPS");
if (TT.getArch() == Triple::mips64 || TT.getArch() == Triple::mips64el) if (TT.getArch() == Triple::mips64 || TT.getArch() == Triple::mips64el)
return MipsABIInfo::N64(); return MipsABIInfo::N64();