[mips] Use Triple::isLittleEndian to check endianness. NFC
llvm-svn: 299872
This commit is contained in:
parent
e4159d2238
commit
c986eb50ef
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue