summaryrefslogtreecommitdiff
path: root/unittests/ExecutionEngine
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2009-12-23 00:58:02 +0000
committerJeffrey Yasskin <jyasskin@google.com>2009-12-23 00:58:02 +0000
commitb9b88ea241d193ce6f03931494942fc5b865e3a3 (patch)
tree8891923e02f118e0e614db14cb0c1f4ce157c83a /unittests/ExecutionEngine
parentfc67bbe7bc2e0aa09832c232a5fbb1be796deb4c (diff)
downloadllvm-b9b88ea241d193ce6f03931494942fc5b865e3a3.tar.gz
llvm-b9b88ea241d193ce6f03931494942fc5b865e3a3.tar.bz2
llvm-b9b88ea241d193ce6f03931494942fc5b865e3a3.tar.xz
Disable JITTest.FunctionIsRecompiledAndRelinked on ARM where it's not
implemented. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ExecutionEngine')
-rw-r--r--unittests/ExecutionEngine/JIT/JITTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/unittests/ExecutionEngine/JIT/JITTest.cpp b/unittests/ExecutionEngine/JIT/JITTest.cpp
index de30ddaa15..7f75afada1 100644
--- a/unittests/ExecutionEngine/JIT/JITTest.cpp
+++ b/unittests/ExecutionEngine/JIT/JITTest.cpp
@@ -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