[mips] Use Triple::isLittleEndian to check endianness. NFC

llvm-svn: 299872
This commit is contained in:
Simon Atanasyan 2017-04-10 19:42:44 +00:00
parent e4159d2238
commit c986eb50ef
1 changed files with 1 additions and 3 deletions

View File

@ -19,9 +19,7 @@ using namespace llvm;
void MipsMCAsmInfo::anchor() { } void MipsMCAsmInfo::anchor() { }
MipsMCAsmInfo::MipsMCAsmInfo(const Triple &TheTriple) { MipsMCAsmInfo::MipsMCAsmInfo(const Triple &TheTriple) {
if ((TheTriple.getArch() == Triple::mips) || IsLittleEndian = TheTriple.isLittleEndian();
(TheTriple.getArch() == Triple::mips64))
IsLittleEndian = false;
if ((TheTriple.getArch() == Triple::mips64el) || if ((TheTriple.getArch() == Triple::mips64el) ||
(TheTriple.getArch() == Triple::mips64)) { (TheTriple.getArch() == Triple::mips64)) {