Update frame size after the bitcode is translated into machine code.

Change-Id: I59923a6cb1a1079d9cfe6d995fe0067ee1c49e80
diff --git a/src/compiler_llvm/jni_compiler.cc b/src/compiler_llvm/jni_compiler.cc
index 68ce2d8..b35d792 100644
--- a/src/compiler_llvm/jni_compiler.cc
+++ b/src/compiler_llvm/jni_compiler.cc
@@ -293,9 +293,14 @@
   // Verify the generated bitcode
   llvm::verifyFunction(*func_, llvm::PrintMessageAction);
 
-  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;
 }