summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/compilation_unit.h
diff options
context:
space:
mode:
author Shih-wei Liao <sliao@google.com> 2012-06-12 05:55:00 -0700
committer Shih-wei Liao <sliao@google.com> 2012-09-15 04:15:17 -0700
commit21d28f510eb590f52810c83f1f3f37fe5f4adf46 (patch)
treef937b4d39aab322541b9b83cc5dd59d8e3f2fddd /src/compiler_llvm/compilation_unit.h
parent0967a25d1482d8f7b4a26c5926263e7ffa63189f (diff)
GBC Expander. Removed lir.
Change-Id: If8d13e36f1e6d82c2a7f7bfec62b8fb41fd8cdaa
Diffstat (limited to 'src/compiler_llvm/compilation_unit.h')
-rw-r--r--src/compiler_llvm/compilation_unit.h12
1 files changed, 12 insertions, 0 deletions
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<IRBuilder> irb_;
UniquePtr<RuntimeSupportBuilder> runtime_support_;
llvm::Module* module_;
+#ifdef ART_USE_DEXLANG_FRONTEND
+ greenland::DexLang::Context* dex_lang_ctx_;
+#endif
std::string bitcode_filename_;