mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
[mc] Clean up emission of byte sequences
No functional change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235178 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -412,10 +412,7 @@ void ELFObjectWriter::WriteHeader(const MCAssembler &Asm,
|
||||
// emitWord method behaves differently for ELF32 and ELF64, writing
|
||||
// 4 bytes in the former and 8 in the latter.
|
||||
|
||||
Write8(0x7f); // e_ident[EI_MAG0]
|
||||
Write8('E'); // e_ident[EI_MAG1]
|
||||
Write8('L'); // e_ident[EI_MAG2]
|
||||
Write8('F'); // e_ident[EI_MAG3]
|
||||
WriteBytes(ELF::ElfMagic); // e_ident[EI_MAG0] to e_ident[EI_MAG3]
|
||||
|
||||
Write8(is64Bit() ? ELF::ELFCLASS64 : ELF::ELFCLASS32); // e_ident[EI_CLASS]
|
||||
|
||||
|
Reference in New Issue
Block a user