mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
AArch64: remove arm64 triple enumerator.
Having both Triple::arm64 and Triple::aarch64 is extremely confusing, and invites bugs where only one is checked. In reality, the only legitimate difference between the two (arm64 usually means iOS) is also present in the OS part of the triple and that's what should be checked. We still parse the "arm64" triple, just canonicalise it to Triple::aarch64, so there aren't any LLVM-side test changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213743 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -755,7 +755,6 @@ MachOObjectFile::getRelocationTypeName(DataRefImpl Rel,
|
||||
res = Table[RType];
|
||||
break;
|
||||
}
|
||||
case Triple::arm64:
|
||||
case Triple::aarch64: {
|
||||
static const char *const Table[] = {
|
||||
"ARM64_RELOC_UNSIGNED", "ARM64_RELOC_SUBTRACTOR",
|
||||
@ -1303,7 +1302,7 @@ Triple::ArchType MachOObjectFile::getArch(uint32_t CPUType) {
|
||||
case llvm::MachO::CPU_TYPE_ARM:
|
||||
return Triple::arm;
|
||||
case llvm::MachO::CPU_TYPE_ARM64:
|
||||
return Triple::arm64;
|
||||
return Triple::aarch64;
|
||||
case llvm::MachO::CPU_TYPE_POWERPC:
|
||||
return Triple::ppc;
|
||||
case llvm::MachO::CPU_TYPE_POWERPC64:
|
||||
|
Reference in New Issue
Block a user