Extract method-related information from CompilationUnit.
Extract method-related information, such as class_loader,
class_linker, dex_file, dex_cache, code_item, method_idx,
and access_flags from art::CompilationUnit, so that we
can use them in 2 different code generators.
Change-Id: I20631cc73b6f01e9646a983156f3fcb066d732db
diff --git a/src/compiler_llvm/method_compiler.h b/src/compiler_llvm/method_compiler.h
index dd10bc8..de60fa3 100644
--- a/src/compiler_llvm/method_compiler.h
+++ b/src/compiler_llvm/method_compiler.h
@@ -38,6 +38,7 @@
class Compiler;
class DexCache;
class Field;
+ class OatCompilationUnit;
}
@@ -71,6 +72,7 @@
DexCache* dex_cache_;
DexFile::CodeItem const* code_item_;
+ OatCompilationUnit* oat_compilation_unit_;
Method* method_;
MethodHelper method_helper_;
@@ -101,13 +103,7 @@
public:
MethodCompiler(InstructionSet insn_set,
Compiler* compiler,
- ClassLinker* class_linker,
- ClassLoader const* class_loader,
- DexFile const* dex_file,
- DexCache* dex_cache,
- DexFile::CodeItem const* code_item,
- uint32_t method_idx,
- uint32_t access_flags);
+ OatCompilationUnit* oat_compilation_unit);
~MethodCompiler();