llvm.org GIT mirror llvm / 4c673fb
[mips] Eliminate else-after-return. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289331 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Atanasyan 2 years ago
1 changed file(s) with 3 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
5050 const MCTargetOptions &Options) {
5151 if (Options.getABIName().startswith("o32"))
5252 return MipsABIInfo::O32();
53 else if (Options.getABIName().startswith("n32"))
53 if (Options.getABIName().startswith("n32"))
5454 return MipsABIInfo::N32();
55 else if (Options.getABIName().startswith("n64"))
55 if (Options.getABIName().startswith("n64"))
5656 return MipsABIInfo::N64();
57 else if (!Options.getABIName().empty())
58 llvm_unreachable("Unknown ABI option for MIPS");
57 assert(Options.getABIName().empty() && "Unknown ABI option for MIPS");
5958
6059 if (TT.getArch() == Triple::mips64 || TT.getArch() == Triple::mips64el)
6160 return MipsABIInfo::N64();