diff options
author | Michael Kuperstein <michael.m.kuperstein@intel.com> | 2015-11-04 11:21:50 +0000 |
---|---|---|
committer | Michael Kuperstein <michael.m.kuperstein@intel.com> | 2015-11-04 11:21:50 +0000 |
commit | 2c9435ef89715e37972853f18f00ab93d143097b (patch) | |
tree | c2fcc65b2afd61aeff77e2004e103b71638d3505 /include | |
parent | c628c1e0b40b7eca79a4f2d3a9d4befbc171eeb8 (diff) |
[ELF] elfiamcu triple should imply e_machine == EM_IAMCU
Differential Revision: http://reviews.llvm.org/D14109
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252043 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Object/ELFObjectFile.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Object/ELFObjectFile.h b/include/llvm/Object/ELFObjectFile.h index c5d1bb29dd8..5823848aaac 100644 --- a/include/llvm/Object/ELFObjectFile.h +++ b/include/llvm/Object/ELFObjectFile.h @@ -825,6 +825,8 @@ StringRef ELFObjectFile<ELFT>::getFileFormatName() const { switch (EF.getHeader()->e_machine) { case ELF::EM_386: return "ELF32-i386"; + case ELF::EM_IAMCU: + return "ELF32-iamcu"; case ELF::EM_X86_64: return "ELF32-x86-64"; case ELF::EM_ARM: @@ -873,6 +875,7 @@ unsigned ELFObjectFile<ELFT>::getArch() const { bool IsLittleEndian = ELFT::TargetEndianness == support::little; switch (EF.getHeader()->e_machine) { case ELF::EM_386: + case ELF::EM_IAMCU: return Triple::x86; case ELF::EM_X86_64: return Triple::x86_64; |