aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ExecutionEngine/MCJIT/MCJITObjectCacheTest.cpp
diff options
context:
space:
mode:
authorDavid Tweed <david.tweed@arm.com>2013-05-17 10:01:46 +0000
committerDavid Tweed <david.tweed@arm.com>2013-05-17 10:01:46 +0000
commit2e7efedd39bcafb2b6c22557b9eccd5243f1cc1c (patch)
tree38315153dd4a02300d8f4e1069ca6ede714680ba /llvm/unittests/ExecutionEngine/MCJIT/MCJITObjectCacheTest.cpp
parentb7be72df5bb3d06be9d5315f74d5c83909f6c5ae (diff)
downloadllvm-2e7efedd39bcafb2b6c22557b9eccd5243f1cc1c.zip
llvm-2e7efedd39bcafb2b6c22557b9eccd5243f1cc1c.tar.gz
llvm-2e7efedd39bcafb2b6c22557b9eccd5243f1cc1c.tar.bz2
Minor changes to the MCJITTest unittests to use the correct API for finalizing
the JIT object (including XFAIL an ARM test that now needs fixing). Also renames internal function for consistency. llvm-svn: 182085
Diffstat (limited to 'llvm/unittests/ExecutionEngine/MCJIT/MCJITObjectCacheTest.cpp')
-rw-r--r--llvm/unittests/ExecutionEngine/MCJIT/MCJITObjectCacheTest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/unittests/ExecutionEngine/MCJIT/MCJITObjectCacheTest.cpp b/llvm/unittests/ExecutionEngine/MCJIT/MCJITObjectCacheTest.cpp
index abe8be4..32fc292 100644
--- a/llvm/unittests/ExecutionEngine/MCJIT/MCJITObjectCacheTest.cpp
+++ b/llvm/unittests/ExecutionEngine/MCJIT/MCJITObjectCacheTest.cpp
@@ -101,11 +101,10 @@ protected:
ASSERT_TRUE(TheJIT.isValid());
ASSERT_TRUE(0 != Main);
+ // We may be using a null cache, so ensure compilation is valid.
TheJIT->finalizeObject();
void *vPtr = TheJIT->getPointerToFunction(Main);
- static_cast<SectionMemoryManager*>(MM)->invalidateInstructionCache();
-
EXPECT_TRUE(0 != vPtr)
<< "Unable to get pointer to main() from JIT";