summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/method_compiler.cc
diff options
context:
space:
mode:
author Shih-wei Liao <sliao@google.com> 2012-04-16 17:54:20 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2012-04-16 17:54:20 -0700
commit53d160d2bf4ae21fa524b7476da1feab8f1b819c (patch)
treea751c859f61e27bbbddfeeafed26d17a1ec45201 /src/compiler_llvm/method_compiler.cc
parent3ea0f42467790809fcfc9fc861605d465808090f (diff)
parent110bcbafbbc4c27bf31d32732aab06f900c02653 (diff)
Merge "Update frame size after the bitcode is translated into machine code." into ics-mr1-plus-art
Diffstat (limited to 'src/compiler_llvm/method_compiler.cc')
-rw-r--r--src/compiler_llvm/method_compiler.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/compiler_llvm/method_compiler.cc b/src/compiler_llvm/method_compiler.cc
index fc9c4d8c4f..153d99a93b 100644
--- a/src/compiler_llvm/method_compiler.cc
+++ b/src/compiler_llvm/method_compiler.cc
@@ -3681,9 +3681,14 @@ CompiledMethod *MethodCompiler::Compile() {
// Dex file. Besides, we have to convert the code unit into bytes.
// Thus, we got our magic number 9.
- return new CompiledMethod(cunit_->GetInstructionSet(),
- cunit_->GetElfIndex(),
- elf_func_idx_);
+ CompiledMethod* compiled_method =
+ new CompiledMethod(cunit_->GetInstructionSet(),
+ cunit_->GetElfIndex(),
+ elf_func_idx_);
+
+ cunit_->RegisterCompiledMethod(func_, compiled_method);
+
+ return compiled_method;
}