mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
[AArch64] Fix OS ABI flag for aarch64-linux-gnu target.
For triple aarch64-linux-gnu we were incorrectly setting IRIX. For triple aarch64 we are correctly setting SYSV. Patch by Ana Pazos <apazos@codeaurora.org>. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214974 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
72a8b11fea
commit
b47a215dd0
@ -14,6 +14,7 @@
|
||||
#include "llvm/MC/MCAsmBackend.h"
|
||||
#include "llvm/MC/MCDirectives.h"
|
||||
#include "llvm/MC/MCFixupKindInfo.h"
|
||||
#include "llvm/MC/MCELFObjectWriter.h"
|
||||
#include "llvm/MC/MCObjectWriter.h"
|
||||
#include "llvm/MC/MCSectionELF.h"
|
||||
#include "llvm/MC/MCSectionMachO.h"
|
||||
@ -551,7 +552,8 @@ MCAsmBackend *llvm::createAArch64leAsmBackend(const Target &T,
|
||||
return new DarwinAArch64AsmBackend(T, MRI);
|
||||
|
||||
assert(TheTriple.isOSBinFormatELF() && "Expect either MachO or ELF target");
|
||||
return new ELFAArch64AsmBackend(T, TheTriple.getOS(), /*IsLittleEndian=*/true);
|
||||
uint8_t OSABI = MCELFObjectTargetWriter::getOSABI(TheTriple.getOS());
|
||||
return new ELFAArch64AsmBackend(T, OSABI, /*IsLittleEndian=*/true);
|
||||
}
|
||||
|
||||
MCAsmBackend *llvm::createAArch64beAsmBackend(const Target &T,
|
||||
@ -561,6 +563,7 @@ MCAsmBackend *llvm::createAArch64beAsmBackend(const Target &T,
|
||||
|
||||
assert(TheTriple.isOSBinFormatELF() &&
|
||||
"Big endian is only supported for ELF targets!");
|
||||
return new ELFAArch64AsmBackend(T, TheTriple.getOS(),
|
||||
uint8_t OSABI = MCELFObjectTargetWriter::getOSABI(TheTriple.getOS());
|
||||
return new ELFAArch64AsmBackend(T, OSABI,
|
||||
/*IsLittleEndian=*/false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user