mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-14 03:45:33 +00:00
[ELF] - Reuse Config->IsLE. NFC.
llvm-svn: 298242
This commit is contained in:
parent
a8dba48762
commit
b17d16a2a1
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user