diff options
| author | David Tweed <david.tweed@arm.com> | 2013-05-17 10:01:46 +0000 |
|---|---|---|
| committer | David Tweed <david.tweed@arm.com> | 2013-05-17 10:01:46 +0000 |
| commit | 2e7efedd39bcafb2b6c22557b9eccd5243f1cc1c (patch) | |
| tree | 38315153dd4a02300d8f4e1069ca6ede714680ba /llvm/unittests/ExecutionEngine/MCJIT/MCJITObjectCacheTest.cpp | |
| parent | b7be72df5bb3d06be9d5315f74d5c83909f6c5ae (diff) | |
| download | llvm-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.cpp | 3 |
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"; |
