diff options
| author | 2012-05-31 08:03:26 -0700 | |
|---|---|---|
| committer | 2012-06-03 09:02:22 -0700 | |
| commit | de479be99328d2113bf483e082c9ecf235a34d69 (patch) | |
| tree | 7a51b8512e12561b9b05238f489d98c1d4a4fdb9 /src/compiler_llvm/compilation_unit.cc | |
| parent | af543476661966c83a1e1c4db4fbef0d9a2d3afa (diff) | |
Refactor runtime support builder.
Also, add inline assembly for load offset from current thread.
Change-Id: I5c32c04a5ab9a8574acbaf8ee3e08761ebe33d4f
Diffstat (limited to 'src/compiler_llvm/compilation_unit.cc')
| -rw-r--r-- | src/compiler_llvm/compilation_unit.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/compiler_llvm/compilation_unit.cc b/src/compiler_llvm/compilation_unit.cc index b4bdd5dc3d..266377e3de 100644 --- a/src/compiler_llvm/compilation_unit.cc +++ b/src/compiler_llvm/compilation_unit.cc @@ -142,10 +142,8 @@ class AddSuspendCheckToLoopLatchPass : public llvm::LoopPass { irb_->SetInsertPoint(bb->getTerminator()); using art::compiler_llvm::runtime_support::TestSuspend; - using art::compiler_llvm::runtime_support::GetCurrentThread; llvm::Value* runtime_func = irb_->GetRuntime(TestSuspend); - llvm::Value* thread_object_addr = irb_->CreateCall(irb_->GetRuntime(GetCurrentThread)); - irb_->CreateCall(runtime_func, thread_object_addr); + irb_->CreateCall(runtime_func, irb_->getJNull()); return true; } |