summaryrefslogtreecommitdiff
path: root/unittests/ExecutionEngine/JIT/JITTest.cpp
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-08-01 02:29:24 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-08-01 02:29:24 +0000
commitc15ad8517719a525ac3b88b6c49b451160691eaa (patch)
tree1fad43aad8c8d4650e7375db843eb9f55a072de1 /unittests/ExecutionEngine/JIT/JITTest.cpp
parent12648bed2873fdf2120b54c5539026ff468283fb (diff)
downloadllvm-c15ad8517719a525ac3b88b6c49b451160691eaa.tar.gz
llvm-c15ad8517719a525ac3b88b6c49b451160691eaa.tar.bz2
llvm-c15ad8517719a525ac3b88b6c49b451160691eaa.tar.xz
Implement MipsJITInfo::replaceMachineCodeForFunction.
No new test case is added. This patch makes test JITTest.FunctionIsRecompiledAndRelinked pass on mips platform. Patch by Petar Jovanovic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161098 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ExecutionEngine/JIT/JITTest.cpp')
-rw-r--r--unittests/ExecutionEngine/JIT/JITTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/ExecutionEngine/JIT/JITTest.cpp b/unittests/ExecutionEngine/JIT/JITTest.cpp
index 0fde6fc66b..89f7e8e422 100644
--- a/unittests/ExecutionEngine/JIT/JITTest.cpp
+++ b/unittests/ExecutionEngine/JIT/JITTest.cpp
@@ -555,10 +555,10 @@ TEST_F(JITTest, FunctionPointersOutliveTheirCreator) {
#endif
}
-// ARM and MIPS do not have an implementation
+// ARM does not have an implementation
// of replaceMachineCodeForFunction(), so recompileAndRelinkFunction
// doesn't work.
-#if !defined(__arm__) && !defined(__mips__)
+#if !defined(__arm__)
TEST_F(JITTest, FunctionIsRecompiledAndRelinked) {
Function *F = Function::Create(TypeBuilder<int(void), false>::get(Context),
GlobalValue::ExternalLinkage, "test", M);