From 7a9dab68445e1da8f6cc2414eac27332292e7370 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Tue, 15 Nov 2016 19:15:18 +0000 Subject: [PATCH] [ELF] Rewrite isMips64EL() using isMipsELF64(). NFCI. llvm-svn: 287011 --- include/llvm/Object/ELF.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index 95b513f293f..a7fc19f0aa7 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -106,8 +106,7 @@ public: } bool isMips64EL() const { - return getHeader()->e_machine == ELF::EM_MIPS && - getHeader()->getFileClass() == ELF::ELFCLASS64 && + return isMipsELF64() && getHeader()->getDataEncoding() == ELF::ELFDATA2LSB; }