[llvm-commits] [llvm] r73039 - /llvm/trunk/lib/CodeGen/ELF.h
Bruno Cardoso Lopes
bruno.cardoso at gmail.com
Sun Jun 7 14:33:21 PDT 2009
Author: bruno
Date: Sun Jun 7 16:33:20 2009
New Revision: 73039
URL: http://llvm.org/viewvc/llvm-project?rev=73039&view=rev
Log:
Fix wrong elf class and byte order initializations.
Modified:
llvm/trunk/lib/CodeGen/ELF.h
Modified: llvm/trunk/lib/CodeGen/ELF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ELF.h?rev=73039&r1=73038&r2=73039&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ELF.h (original)
+++ llvm/trunk/lib/CodeGen/ELF.h Sun Jun 7 16:33:20 2009
@@ -89,8 +89,8 @@
ELFHeader(unsigned short machine, unsigned flags,
bool is64Bit, bool isLittleEndian)
: e_machine(machine), e_flags(flags) {
- ByteOrder = is64Bit ? ELFCLASS64 : ELFCLASS32;
- ElfClass = isLittleEndian ? ELFDATA2LSB : ELFDATA2MSB;
+ ElfClass = is64Bit ? ELFCLASS64 : ELFCLASS32;
+ ByteOrder = isLittleEndian ? ELFDATA2LSB : ELFDATA2MSB;
e_ehsize = is64Bit ? 64 : 52;
}
};
More information about the llvm-commits
mailing list