diff options
author | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2012-10-05 14:32:46 +0000 |
---|---|---|
committer | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2012-10-05 14:32:46 +0000 |
commit | a5e01b1314b48c364c092288c2aef95c29a79583 (patch) | |
tree | a78a6fbc330b5d976491aa3c615865b63d768490 /include | |
parent | b894f96de4f26dd738e3bf706ffe7cf0eda60714 (diff) | |
download | external_llvm-a5e01b1314b48c364c092288c2aef95c29a79583.zip external_llvm-a5e01b1314b48c364c092288c2aef95c29a79583.tar.gz external_llvm-a5e01b1314b48c364c092288c2aef95c29a79583.tar.bz2 |
Add PowerPC64 definitions for ELF.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165314 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Object/ELF.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index 2e6a7d8..6dc0776 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -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; } |