summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-07-24 01:58:40 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-07-24 01:58:40 +0000
commit3af1c9d3343357849f19f7467f9c16220ad37ca4 (patch)
tree6b480c5a91cc4fc181d4a7b7b2031788cad64ddf /unittests
parente6f774e7ef1a11af39a6565465355db905f59d81 (diff)
downloadllvm-3af1c9d3343357849f19f7467f9c16220ad37ca4.tar.gz
llvm-3af1c9d3343357849f19f7467f9c16220ad37ca4.tar.bz2
llvm-3af1c9d3343357849f19f7467f9c16220ad37ca4.tar.xz
[mips] Use pristine object file while processing relocations.
Similar to ARM change r182800, dynamic linker will read bits/addends from the original object rather than from the object that might have been patched previously. For the purpose of relocations for MCJIT stubs on MIPS, we internally use otherwise unused MIPS relocations. The change also enables MCJIT unit tests for MIPS (EL/BE), and the following two tests now pass: - MCJITTest.return_global and - MCJITTest.multiple_functions. These issues have been tracked as Bug 16250. Patch by Petar Jovanovic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187019 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/ExecutionEngine/MCJIT/MCJITTestBase.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h b/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
index 9766a79ae5..5debb8b578 100644
--- a/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
+++ b/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
@@ -156,6 +156,8 @@ protected:
// kept in sync.
SupportedArchs.push_back(Triple::aarch64);
SupportedArchs.push_back(Triple::arm);
+ SupportedArchs.push_back(Triple::mips);
+ SupportedArchs.push_back(Triple::mipsel);
SupportedArchs.push_back(Triple::x86);
SupportedArchs.push_back(Triple::x86_64);