diff options
| author | Jeffrey Yasskin <jyasskin@google.com> | 2009-10-27 22:39:42 +0000 |
|---|---|---|
| committer | Jeffrey Yasskin <jyasskin@google.com> | 2009-10-27 22:39:42 +0000 |
| commit | aa8814a87726804d36ea8d9dfcf15f9d9285703e (patch) | |
| tree | ae62adb88de0b8e57e548aebafe7d955a3395930 /llvm/unittests/ExecutionEngine/JIT/JITTest.cpp | |
| parent | a205402c16d27078f6e1bd78fa42ff5f5b94e9ea (diff) | |
| download | bcm5719-llvm-aa8814a87726804d36ea8d9dfcf15f9d9285703e.tar.gz bcm5719-llvm-aa8814a87726804d36ea8d9dfcf15f9d9285703e.zip | |
Revert the API changes from r85295 to make it easier for people to build
against both 2.6 and HEAD. The default is still changed to eager jitting.
llvm-svn: 85330
Diffstat (limited to 'llvm/unittests/ExecutionEngine/JIT/JITTest.cpp')
| -rw-r--r-- | llvm/unittests/ExecutionEngine/JIT/JITTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp b/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp index 3e1f4230fe6..2e0f9311a1f 100644 --- a/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp +++ b/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp @@ -304,7 +304,7 @@ TEST_F(JITTest, FarCallToKnownFunction) { Builder.CreateRet(result); TheJIT->EnableDlsymStubs(false); - TheJIT->EnableLazyCompilation(false); + TheJIT->DisableLazyCompilation(true); int (*TestFunctionPtr)() = reinterpret_cast<int(*)()>( (intptr_t)TheJIT->getPointerToFunction(TestFunction)); // This used to crash in trying to call PlusOne(). @@ -314,7 +314,7 @@ TEST_F(JITTest, FarCallToKnownFunction) { #if !defined(__arm__) && !defined(__powerpc__) && !defined(__ppc__) // Test a function C which calls A and B which call each other. TEST_F(JITTest, NonLazyCompilationStillNeedsStubs) { - TheJIT->EnableLazyCompilation(false); + TheJIT->DisableLazyCompilation(true); const FunctionType *Func1Ty = cast<FunctionType>(TypeBuilder<void(void), false>::get(Context)); @@ -370,7 +370,7 @@ TEST_F(JITTest, NonLazyCompilationStillNeedsStubs) { // Regression test for PR5162. This used to trigger an AssertingVH inside the // JIT's Function to stub mapping. TEST_F(JITTest, NonLazyLeaksNoStubs) { - TheJIT->EnableLazyCompilation(false); + TheJIT->DisableLazyCompilation(true); // Create two functions with a single basic block each. const FunctionType *FuncTy = |

