diff options
| author | 2012-03-13 19:45:22 -0700 | |
|---|---|---|
| committer | 2012-03-13 19:45:22 -0700 | |
| commit | 13b835a45f3dccff1c6d024ad82a2044831c7c41 (patch) | |
| tree | 73bbdc151d85b7fe83d6086e42f6da5c63ed7e7c /src/compiler_llvm/compiler_llvm.cc | |
| parent | 3fa1b7e7a7fc9785ba4e8335d730e5caf6343322 (diff) | |
Fix LLVM #includes and push one piece of LLVM-specific lossage down.
Change-Id: I9f2b7a9fd4d543a3bd9dd9f4c62367c28c69ea36
Diffstat (limited to 'src/compiler_llvm/compiler_llvm.cc')
| -rw-r--r-- | src/compiler_llvm/compiler_llvm.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/compiler_llvm/compiler_llvm.cc b/src/compiler_llvm/compiler_llvm.cc index c5e620b859..5ef171088d 100644 --- a/src/compiler_llvm/compiler_llvm.cc +++ b/src/compiler_llvm/compiler_llvm.cc @@ -255,7 +255,10 @@ extern "C" art::CompiledMethod* ArtJniCompileMethod(art::Compiler& compiler, class_loader, class_linker, dex_file, *dex_cache, NULL, method_idx, access_flags); - return compiler.GetCompilerLLVM()->CompileNativeMethod(&oat_compilation_unit); + art::CompiledMethod* result = + compiler.GetCompilerLLVM()->CompileNativeMethod(&oat_compilation_unit); + compiler.GetCompilerLLVM()->MaterializeIfThresholdReached(); + return result; } extern "C" art::CompiledInvokeStub* ArtCreateInvokeStub(art::Compiler& compiler, bool is_static, @@ -270,11 +273,6 @@ extern "C" void compilerLLVMMaterializeRemainder(art::Compiler& compiler) { compiler.GetCompilerLLVM()->MaterializeRemainder(); } -extern "C" void compilerLLVMMaterializeIfThresholdReached(art::Compiler& compiler) { - ensureCompilerLLVM(compiler); - compiler.GetCompilerLLVM()->MaterializeIfThresholdReached(); -} - // Note: Using this function carefully!!! This is temporary solution, we will remove it. extern "C" art::MutexLock* compilerLLVMMutexLock(art::Compiler& compiler) { ensureCompilerLLVM(compiler); |