[llvm] r287011 - [ELF] Rewrite isMips64EL() using isMipsELF64(). NFCI.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 15 11:15:19 PST 2016
Author: davide
Date: Tue Nov 15 13:15:18 2016
New Revision: 287011
URL: http://llvm.org/viewvc/llvm-project?rev=287011&view=rev
Log:
[ELF] Rewrite isMips64EL() using isMipsELF64(). NFCI.
Modified:
llvm/trunk/include/llvm/Object/ELF.h
Modified: llvm/trunk/include/llvm/Object/ELF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/ELF.h?rev=287011&r1=287010&r2=287011&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/ELF.h (original)
+++ llvm/trunk/include/llvm/Object/ELF.h Tue Nov 15 13:15:18 2016
@@ -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;
}
More information about the llvm-commits
mailing list