summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2012-10-05 14:32:46 +0000
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2012-10-05 14:32:46 +0000
commita5e01b1314b48c364c092288c2aef95c29a79583 (patch)
treea78a6fbc330b5d976491aa3c615865b63d768490 /include
parentb894f96de4f26dd738e3bf706ffe7cf0eda60714 (diff)
downloadllvm-a5e01b1314b48c364c092288c2aef95c29a79583.tar.gz
llvm-a5e01b1314b48c364c092288c2aef95c29a79583.tar.bz2
llvm-a5e01b1314b48c364c092288c2aef95c29a79583.tar.xz
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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h
index 2e6a7d8c1f..6dc0776d43 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;
}