mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-29 13:32:33 +00:00
Add PowerPC64 definitions for ELF.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165314 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b894f96de4
commit
a5e01b1314
@ -2272,6 +2272,8 @@ StringRef ELFObjectFile<target_endianness, is64Bits>
|
||||
return "ELF64-i386";
|
||||
case ELF::EM_X86_64:
|
||||
return "ELF64-x86-64";
|
||||
case ELF::EM_PPC64:
|
||||
return "ELF64-ppc64";
|
||||
default:
|
||||
return "ELF64-unknown";
|
||||
}
|
||||
@ -2295,6 +2297,8 @@ unsigned ELFObjectFile<target_endianness, is64Bits>::getArch() const {
|
||||
case ELF::EM_MIPS:
|
||||
return (target_endianness == support::little) ?
|
||||
Triple::mipsel : Triple::mips;
|
||||
case ELF::EM_PPC64:
|
||||
return Triple::ppc64;
|
||||
default:
|
||||
return Triple::UnknownArch;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user