mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
Reduce the exposure of Triple::OSType in the ELF object writer. This will
avoid including ADT/Triple.h in many places when the target specific bits are moved. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147059 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -93,11 +93,7 @@ void ELFObjectWriter::WriteHeader(uint64_t SectionDataSize,
|
||||
|
||||
Write8(ELF::EV_CURRENT); // e_ident[EI_VERSION]
|
||||
// e_ident[EI_OSABI]
|
||||
switch (TargetObjectWriter->getOSType()) {
|
||||
case Triple::FreeBSD: Write8(ELF::ELFOSABI_FREEBSD); break;
|
||||
case Triple::Linux: Write8(ELF::ELFOSABI_LINUX); break;
|
||||
default: Write8(ELF::ELFOSABI_NONE); break;
|
||||
}
|
||||
Write8(TargetObjectWriter->getOSABI());
|
||||
Write8(0); // e_ident[EI_ABIVERSION]
|
||||
|
||||
WriteZeros(ELF::EI_NIDENT - ELF::EI_PAD);
|
||||
|
Reference in New Issue
Block a user