[ELF] - Reuse Config->IsLE. NFC.

llvm-svn: 298242
This commit is contained in:
George Rimar 2017-03-20 10:16:57 +00:00
parent a8dba48762
commit b17d16a2a1

View File

@ -962,10 +962,7 @@ uint32_t LinkerScriptBase::getFiller(StringRef Name) {
}
static void writeInt(uint8_t *Buf, uint64_t Data, uint64_t Size) {
const endianness E =
(Config->EKind == ELF32LEKind || Config->EKind == ELF64LEKind)
? llvm::support::endianness::little
: llvm::support::endianness::big;
const endianness E = Config->IsLE ? endianness::little : endianness::big;
switch (Size) {
case 1: