diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-08-17 21:28:04 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-08-17 21:28:04 +0000 |
commit | b889e0cd2fea4afee623d5be603b912b955a2eca (patch) | |
tree | 19b5fcc22f4f4513e48f290b402ad3009df05388 /include | |
parent | a67eda76c0224ec272e2cc7cf919f4e6e213e275 (diff) | |
download | external_llvm-b889e0cd2fea4afee623d5be603b912b955a2eca.zip external_llvm-b889e0cd2fea4afee623d5be603b912b955a2eca.tar.gz external_llvm-b889e0cd2fea4afee623d5be603b912b955a2eca.tar.bz2 |
Correct MCJIT functionality for MIPS32 architecture.
No new tests are added.
All tests in ExecutionEngine/MCJIT that have been failing pass after this patch
is applied (when "make check" is done on a mips board).
Patch by Petar Jovanovic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162135 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Object/ELF.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index 7698441..5b95557 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -2044,6 +2044,9 @@ unsigned ELFObjectFile<target_endianness, is64Bits>::getArch() const { return Triple::arm; case ELF::EM_HEXAGON: return Triple::hexagon; + case ELF::EM_MIPS: + return (target_endianness == support::little) ? + Triple::mipsel : Triple::mips; default: return Triple::UnknownArch; } |