From 21d28f510eb590f52810c83f1f3f37fe5f4adf46 Mon Sep 17 00:00:00 2001 From: Shih-wei Liao Date: Tue, 12 Jun 2012 05:55:00 -0700 Subject: GBC Expander. Removed lir. Change-Id: If8d13e36f1e6d82c2a7f7bfec62b8fb41fd8cdaa --- src/compiler_llvm/compilation_unit.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/compiler_llvm/compilation_unit.h') diff --git a/src/compiler_llvm/compilation_unit.h b/src/compiler_llvm/compilation_unit.h index 576b65f8b3..d1dfa0cdb7 100644 --- a/src/compiler_llvm/compilation_unit.h +++ b/src/compiler_llvm/compilation_unit.h @@ -19,6 +19,9 @@ #include "../mutex.h" #include "globals.h" +#ifdef ART_USE_DEXLANG_FRONTEND +# include "greenland/dex_lang.h" +#endif #include "instruction_set.h" #include "logging.h" #include "runtime_support_builder.h" @@ -71,6 +74,12 @@ class CompilationUnit { return irb_.get(); } +#ifdef ART_USE_DEXLANG_FRONTEND + greenland::DexLang::Context* GetDexLangContext() const { + return dex_lang_ctx_; + } +#endif + void SetBitcodeFileName(const std::string& bitcode_filename) { bitcode_filename_ = bitcode_filename; } @@ -94,6 +103,9 @@ class CompilationUnit { UniquePtr irb_; UniquePtr runtime_support_; llvm::Module* module_; +#ifdef ART_USE_DEXLANG_FRONTEND + greenland::DexLang::Context* dex_lang_ctx_; +#endif std::string bitcode_filename_; -- cgit v1.2.3-59-g8ed1b