Add art runtime support declaration.
Change-Id: I909ac29ef4ffbcbe93c7809e2d396ed4672f5892
diff --git a/src/compiler_llvm/ir_builder.h b/src/compiler_llvm/ir_builder.h
index a88b16d..617ed8d 100644
--- a/src/compiler_llvm/ir_builder.h
+++ b/src/compiler_llvm/ir_builder.h
@@ -18,6 +18,7 @@
#define ART_SRC_COMPILER_LLVM_IR_BUILDER_H_
#include "backend_types.h"
+#include "runtime_support_func.h"
#include <llvm/Constants.h>
#include <llvm/DerivedTypes.h>
@@ -90,6 +91,13 @@
//--------------------------------------------------------------------------
+ // Runtime Helper Function
+ //--------------------------------------------------------------------------
+
+ llvm::Function* GetRuntime(runtime_support::RuntimeId rt) const;
+
+
+ //--------------------------------------------------------------------------
// Type Helper Function
//--------------------------------------------------------------------------
@@ -240,6 +248,13 @@
private:
//--------------------------------------------------------------------------
+ // Runtime Helper Function (Private)
+ //--------------------------------------------------------------------------
+
+ void InitRuntimeSupportFuncDecl(llvm::Module& module);
+
+
+ //--------------------------------------------------------------------------
// Type Helper Function (Private)
//--------------------------------------------------------------------------
@@ -251,6 +266,8 @@
private:
llvm::PointerType* jobject_type_;
+ llvm::Function* runtime_support_func_decls_[runtime_support::MAX_ID];
+
};