From c15ad8517719a525ac3b88b6c49b451160691eaa Mon Sep 17 00:00:00 2001 From: Akira Hatanaka Date: Wed, 1 Aug 2012 02:29:24 +0000 Subject: 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 --- unittests/ExecutionEngine/JIT/JITTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unittests') 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::get(Context), GlobalValue::ExternalLinkage, "test", M); -- cgit v1.1