[llvm] r299872 - [mips] Use Triple::isLittleEndian to check endianness. NFC
Simon Atanasyan via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 10 12:42:44 PDT 2017
Author: atanasyan
Date: Mon Apr 10 14:42:44 2017
New Revision: 299872
URL: http://llvm.org/viewvc/llvm-project?rev=299872&view=rev
Log:
[mips] Use Triple::isLittleEndian to check endianness. NFC
Modified:
llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp
Modified: llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp?rev=299872&r1=299871&r2=299872&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp Mon Apr 10 14:42:44 2017
@@ -19,9 +19,7 @@ using namespace llvm;
void MipsMCAsmInfo::anchor() { }
MipsMCAsmInfo::MipsMCAsmInfo(const Triple &TheTriple) {
- if ((TheTriple.getArch() == Triple::mips) ||
- (TheTriple.getArch() == Triple::mips64))
- IsLittleEndian = false;
+ IsLittleEndian = TheTriple.isLittleEndian();
if ((TheTriple.getArch() == Triple::mips64el) ||
(TheTriple.getArch() == Triple::mips64)) {
More information about the llvm-commits
mailing list