diff options
author | Roman Divacky <rdivacky@freebsd.org> | 2012-08-16 18:30:03 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@freebsd.org> | 2012-08-16 18:30:03 +0000 |
commit | 745d94d29fec3df001a08062644e68052ac14618 (patch) | |
tree | b724db6ae4991f561a4493f15cab34794ce681a6 /include | |
parent | 0016f73ae5ebdd8e62ee640d287482fed562b369 (diff) | |
download | external_llvm-745d94d29fec3df001a08062644e68052ac14618.zip external_llvm-745d94d29fec3df001a08062644e68052ac14618.tar.gz external_llvm-745d94d29fec3df001a08062644e68052ac14618.tar.bz2 |
Handle PowerPC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162034 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Object/ELF.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index 7698441..40c6cb1 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -2015,6 +2015,8 @@ StringRef ELFObjectFile<target_endianness, is64Bits> return "ELF32-arm"; case ELF::EM_HEXAGON: return "ELF32-hexagon"; + case ELF::EM_PPC: + return "ELF32-ppc"; default: return "ELF32-unknown"; } @@ -2024,6 +2026,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"; } @@ -2044,6 +2048,10 @@ unsigned ELFObjectFile<target_endianness, is64Bits>::getArch() const { return Triple::arm; case ELF::EM_HEXAGON: return Triple::hexagon; + case ELF::EM_PPC: + return Triple::ppc; + case ELF::EM_PPC64: + return Triple::ppc64; default: return Triple::UnknownArch; } |