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:
Adhemerval Zanella 2012-10-05 14:32:46 +00:00
parent b894f96de4
commit a5e01b1314

View File

@ -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;
}