Add upcall compiler.

Upcall compiler compiles the invoke stub for native-to-managed
method invocation.

Change-Id: I09fb1e4b3f166e8da5de73e8f39509cd9be6c152
diff --git a/src/compiled_method.cc b/src/compiled_method.cc
index 7c7460c..3c3f6ef 100644
--- a/src/compiled_method.cc
+++ b/src/compiled_method.cc
@@ -171,10 +171,16 @@
   }
 }
 
+#if defined(ART_USE_LLVM_COMPILER)
+CompiledInvokeStub::CompiledInvokeStub(llvm::Function* func) : func_(func) {
+  CHECK_NE(func, static_cast<llvm::Function*>(NULL));
+}
+#else
 CompiledInvokeStub::CompiledInvokeStub(std::vector<uint8_t>& code) {
   CHECK_NE(code.size(), 0U);
   code_ = code;
 }
+#endif
 
 CompiledInvokeStub::~CompiledInvokeStub() {}