Remove CADMs from LLVM code generator.
Change-Id: Iafe3ff9f528c6a1573b7358b16566af745ff3c9f
diff --git a/src/oat_compilation_unit.h b/src/oat_compilation_unit.h
index 9d1463e..97591a1 100644
--- a/src/oat_compilation_unit.h
+++ b/src/oat_compilation_unit.h
@@ -17,6 +17,8 @@
#ifndef ART_SRC_METHOD_UNIT_H_
#define ART_SRC_METHOD_UNIT_H_
+#include "dex_file.h"
+
#include <stdint.h>
namespace art {
@@ -37,6 +39,22 @@
method_idx_(method_idx), access_flags_(access_flags) {
}
+ OatCompilationUnit* GetCallee(uint32_t callee_method_idx,
+ uint32_t callee_access_flags) {
+ return new OatCompilationUnit(class_loader_, class_linker_, *dex_file_, *dex_cache_,
+ NULL, callee_method_idx, callee_access_flags);
+ }
+
+ char const* GetShorty() const {
+ DexFile::MethodId const& method_id = dex_file_->GetMethodId(method_idx_);
+ return dex_file_->GetMethodShorty(method_id);
+ }
+
+ char const* GetShorty(uint32_t* shorty_len) const {
+ DexFile::MethodId const& method_id = dex_file_->GetMethodId(method_idx_);
+ return dex_file_->GetMethodShorty(method_id, shorty_len);
+ }
+
public:
ClassLoader const* class_loader_;
ClassLinker* class_linker_;