summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/compiler_llvm.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler_llvm/compiler_llvm.cc')
-rw-r--r--src/compiler_llvm/compiler_llvm.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/compiler_llvm/compiler_llvm.cc b/src/compiler_llvm/compiler_llvm.cc
index 3ec5e68061..78434072ee 100644
--- a/src/compiler_llvm/compiler_llvm.cc
+++ b/src/compiler_llvm/compiler_llvm.cc
@@ -31,6 +31,7 @@
#include "stl_util.h"
#include "stub_compiler.h"
#include "utils_llvm.h"
+#include "verifier/method_verifier.h"
#include <llvm/LinkAllPasses.h>
#include <llvm/LinkAllVMCore.h>
@@ -180,8 +181,10 @@ CompileDexMethod(OatCompilationUnit* oat_compilation_unit, InvokeType invoke_typ
cunit->Materialize();
- return new CompiledMethod(cunit->GetInstructionSet(),
- cunit->GetCompiledCode());
+ Compiler::MethodReference mref(dex_file_, method_idx_);
+ return new CompiledMethod(cunit_->GetInstructionSet(),
+ cunit_->GetCompiledCode(),
+ *verifier::MethodVerifier::GetDexGcMap(mref));
}
#else
UniquePtr<MethodCompiler> method_compiler(