diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2009-12-12 06:18:46 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2009-12-12 06:18:46 +0000 |
commit | cbfd1ed3c3d611d3d36d6853b99f6d615eaf96f1 (patch) | |
tree | b36d1d3e4ca3bb22dfa168b8d133a32dbaecc7ae /unittests/ExecutionEngine | |
parent | fcfc5e88a362367990b85c708d9656c9e9150f5e (diff) | |
download | external_llvm-cbfd1ed3c3d611d3d36d6853b99f6d615eaf96f1.zip external_llvm-cbfd1ed3c3d611d3d36d6853b99f6d615eaf96f1.tar.gz external_llvm-cbfd1ed3c3d611d3d36d6853b99f6d615eaf96f1.tar.bz2 |
Revert r91208. Something on Linux prevents the JIT from looking up a symbol
defined in the test, and I don't have time tonight to figure it out.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91209 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ExecutionEngine')
-rw-r--r-- | unittests/ExecutionEngine/JIT/JITTest.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/unittests/ExecutionEngine/JIT/JITTest.cpp b/unittests/ExecutionEngine/JIT/JITTest.cpp index bbf3460..12c6b67 100644 --- a/unittests/ExecutionEngine/JIT/JITTest.cpp +++ b/unittests/ExecutionEngine/JIT/JITTest.cpp @@ -534,31 +534,6 @@ TEST_F(JITTest, FunctionPointersOutliveTheirCreator) { #endif } -} // anonymous namespace -// This variable is intentionally defined differently in the statically-compiled -// program from the IR input to the JIT to assert that the JIT doesn't use its -// definition. -extern "C" int32_t JITTest_AvailableExternallyGlobal; -int32_t JITTest_AvailableExternallyGlobal = 42; -namespace { - -TEST_F(JITTest, AvailableExternallyGlobalIsntEmitted) { - TheJIT->DisableLazyCompilation(true); - LoadAssembly("@JITTest_AvailableExternallyGlobal = " - " available_externally global i32 7 " - " " - "define i32 @loader() { " - " %result = load i32* @JITTest_AvailableExternallyGlobal " - " ret i32 %result " - "} "); - Function *loaderIR = M->getFunction("loader"); - - int32_t (*loader)() = reinterpret_cast<int32_t(*)()>( - (intptr_t)TheJIT->getPointerToFunction(loaderIR)); - EXPECT_EQ(42, loader()) << "func should return 42 from the external global," - << " not 7 from the IR version."; -} - // This code is copied from JITEventListenerTest, but it only runs once for all // the tests in this directory. Everything seems fine, but that's strange // behavior. |