[llvm] r315364 - Simplify. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 10 14:03:46 PDT 2017
Author: rafael
Date: Tue Oct 10 14:03:46 2017
New Revision: 315364
URL: http://llvm.org/viewvc/llvm-project?rev=315364&view=rev
Log:
Simplify. NFC.
Modified:
llvm/trunk/lib/Object/ELFObjectFile.cpp
Modified: llvm/trunk/lib/Object/ELFObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/ELFObjectFile.cpp?rev=315364&r1=315363&r2=315364&view=diff
==============================================================================
--- llvm/trunk/lib/Object/ELFObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/ELFObjectFile.cpp Tue Oct 10 14:03:46 2017
@@ -51,16 +51,16 @@ ObjectFile::createELFObjectFile(MemoryBu
std::unique_ptr<ObjectFile> R;
if (Ident.first == ELF::ELFCLASS32) {
if (Ident.second == ELF::ELFDATA2LSB)
- R.reset(new ELFObjectFile<ELFType<support::little, false>>(Obj, EC));
+ R.reset(new ELFObjectFile<ELF32LE>(Obj, EC));
else if (Ident.second == ELF::ELFDATA2MSB)
- R.reset(new ELFObjectFile<ELFType<support::big, false>>(Obj, EC));
+ R.reset(new ELFObjectFile<ELF32BE>(Obj, EC));
else
return createError("Invalid ELF data");
} else if (Ident.first == ELF::ELFCLASS64) {
if (Ident.second == ELF::ELFDATA2LSB)
- R.reset(new ELFObjectFile<ELFType<support::little, true>>(Obj, EC));
+ R.reset(new ELFObjectFile<ELF64LE>(Obj, EC));
else if (Ident.second == ELF::ELFDATA2MSB)
- R.reset(new ELFObjectFile<ELFType<support::big, true>>(Obj, EC));
+ R.reset(new ELFObjectFile<ELF64BE>(Obj, EC));
else
return createError("Invalid ELF data");
} else {
More information about the llvm-commits
mailing list