Disable JITTest.FunctionIsRecompiledAndRelinked on ARM where it's not
authorJeffrey Yasskin <jyasskin@google.com>
Wed, 23 Dec 2009 00:58:02 +0000 (00:58 +0000)
committerJeffrey Yasskin <jyasskin@google.com>
Wed, 23 Dec 2009 00:58:02 +0000 (00:58 +0000)
implemented.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91963 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/ExecutionEngine/JIT/JITTest.cpp

index de30ddaa15fc15ed28bb4fb412050d3fd1db9e3b..7f75afada1aa3dcee3645174a545a412cc1df932 100644 (file)
@@ -542,6 +542,9 @@ TEST_F(JITTest, FunctionPointersOutliveTheirCreator) {
 #endif
 }
 
+// ARM doesn't have an implementation of replaceMachineCodeForFunction(), so
+// recompileAndRelinkFunction doesn't work.
+#if !defined(__arm__)
 TEST_F(JITTest, FunctionIsRecompiledAndRelinked) {
   Function *F = Function::Create(TypeBuilder<int(void), false>::get(Context),
                                  GlobalValue::ExternalLinkage, "test", M);
@@ -572,6 +575,7 @@ TEST_F(JITTest, FunctionIsRecompiledAndRelinked) {
   EXPECT_EQ(2, OrigFPtr())
     << "The old pointer's target should now jump to the new version";
 }
+#endif  // !defined(__arm__)
 
 }  // anonymous namespace
 // This variable is intentionally defined differently in the statically-compiled