mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 08:28:19 +00:00
Fix wrong elf class and byte order initializations.
llvm-svn: 73039
This commit is contained in:
parent
cfa07266cf
commit
f7d71605a6
@ -89,8 +89,8 @@ namespace llvm {
|
|||||||
ELFHeader(unsigned short machine, unsigned flags,
|
ELFHeader(unsigned short machine, unsigned flags,
|
||||||
bool is64Bit, bool isLittleEndian)
|
bool is64Bit, bool isLittleEndian)
|
||||||
: e_machine(machine), e_flags(flags) {
|
: e_machine(machine), e_flags(flags) {
|
||||||
ByteOrder = is64Bit ? ELFCLASS64 : ELFCLASS32;
|
ElfClass = is64Bit ? ELFCLASS64 : ELFCLASS32;
|
||||||
ElfClass = isLittleEndian ? ELFDATA2LSB : ELFDATA2MSB;
|
ByteOrder = isLittleEndian ? ELFDATA2LSB : ELFDATA2MSB;
|
||||||
e_ehsize = is64Bit ? 64 : 52;
|
e_ehsize = is64Bit ? 64 : 52;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user