summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/compilation_unit.h
diff options
context:
space:
mode:
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_;