summaryrefslogtreecommitdiff
path: root/include/llvm/Object/ELF.h
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-08-17 21:28:04 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-08-17 21:28:04 +0000
commitb889e0cd2fea4afee623d5be603b912b955a2eca (patch)
tree19b5fcc22f4f4513e48f290b402ad3009df05388 /include/llvm/Object/ELF.h
parenta67eda76c0224ec272e2cc7cf919f4e6e213e275 (diff)
downloadllvm-b889e0cd2fea4afee623d5be603b912b955a2eca.tar.gz
llvm-b889e0cd2fea4afee623d5be603b912b955a2eca.tar.bz2
llvm-b889e0cd2fea4afee623d5be603b912b955a2eca.tar.xz
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/llvm/Object/ELF.h')
-rw-r--r--include/llvm/Object/ELF.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h
index 7698441fd1..5b95557360 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;
}