diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-08-01 02:29:24 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-08-01 02:29:24 +0000 |
commit | c15ad8517719a525ac3b88b6c49b451160691eaa (patch) | |
tree | 1fad43aad8c8d4650e7375db843eb9f55a072de1 /unittests | |
parent | 12648bed2873fdf2120b54c5539026ff468283fb (diff) | |
download | external_llvm-c15ad8517719a525ac3b88b6c49b451160691eaa.zip external_llvm-c15ad8517719a525ac3b88b6c49b451160691eaa.tar.gz external_llvm-c15ad8517719a525ac3b88b6c49b451160691eaa.tar.bz2 |
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')
-rw-r--r-- | unittests/ExecutionEngine/JIT/JITTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/ExecutionEngine/JIT/JITTest.cpp b/unittests/ExecutionEngine/JIT/JITTest.cpp index 0fde6fc..89f7e8e 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); |