Fix 065 and 066 tests (NULL Method bug). Don't use Method in LLVM method compiler.

Change-Id: I98e4e9b329448b1b72c3b5c9d712ea68dab624bd
diff --git a/src/oat_compilation_unit.h b/src/oat_compilation_unit.h
index b21a5b0..0000f21 100644
--- a/src/oat_compilation_unit.h
+++ b/src/oat_compilation_unit.h
@@ -46,6 +46,30 @@
                                   callee_access_flags);
   }
 
+  const ClassLoader* GetClassLoader() const {
+    return class_loader_;
+  }
+
+  ClassLinker* GetClassLinker() const {
+    return class_linker_;
+  }
+
+  const DexFile* GetDexFile() const {
+    return dex_file_;
+  }
+
+  DexCache* GetDexCache() const {
+    return dex_cache_;
+  }
+
+  uint32_t GetDexMethodIndex() const {
+    return method_idx_;
+  }
+
+  const DexFile::CodeItem* GetCodeItem() const {
+    return code_item_;
+  }
+
   const char* GetShorty() const {
     const DexFile::MethodId& method_id = dex_file_->GetMethodId(method_idx_);
     return dex_file_->GetMethodShorty(method_id);
@@ -56,6 +80,10 @@
     return dex_file_->GetMethodShorty(method_id, shorty_len);
   }
 
+  bool IsStatic() const {
+    return ((access_flags_ & kAccStatic) != 0);
+  }
+
  public:
   const ClassLoader* class_loader_;
   ClassLinker* class_linker_;