josephwen Adds caching for MC JIT.

New MCCacheReader in addition to the classic JIT's CacheReader.[cpp|h].
New MCCacheWriter in addition to the classic JIT's CacheReader.[cpp|h].

Change-Id: Iffd490caf25136d52cefc1c6bc2a78fa991236cd
diff --git a/lib/ExecutionEngine/ScriptCached.cpp b/lib/ExecutionEngine/ScriptCached.cpp
index b1dd9ce..da32ad0 100644
--- a/lib/ExecutionEngine/ScriptCached.cpp
+++ b/lib/ExecutionEngine/ScriptCached.cpp
@@ -104,11 +104,13 @@
 
 
 void *ScriptCached::lookup(const char *name) {
+#if USE_MCJIT
+  return rsloaderGetSymbolAddress(mRSExecutable, name);
+#endif
   FuncTable::const_iterator I = mFunctions.find(name);
   return (I == mFunctions.end()) ? NULL : I->second.first;
 }
 
-
 void ScriptCached::getFuncInfoList(size_t funcInfoListSize,
                                    FuncInfo *funcInfoList) {
   if (funcInfoList) {