Integrate from jush  MC Assembler is done.

Change-Id: I5e640691397b8988a6b27fb454c4bfc24a4f5c41
diff --git a/lib/ExecutionEngine/Script.cpp b/lib/ExecutionEngine/Script.cpp
index cc9801a..d43d9cf 100644
--- a/lib/ExecutionEngine/Script.cpp
+++ b/lib/ExecutionEngine/Script.cpp
@@ -76,6 +76,15 @@
                         const char *bitcode,
                         size_t bitcodeSize,
                         unsigned long flags) {
+
+  if (!resName) {
+    mErrorCode = BCC_INVALID_VALUE;
+    LOGE("Invalid argument: resName = NULL\n");
+    return 1;
+  }
+
+  mResName = resName;
+
   if (mStatus != ScriptStatus::Unknown) {
     mErrorCode = BCC_INVALID_OPERATION;
     LOGE("Bad operation: Adding source after bccPrepareExecutable\n");
@@ -289,6 +298,8 @@
     }
   }
 
+  mCompiled->setResName(mResName);
+
   // Compile and JIT the code
   if (mCompiled->compile() != 0) {
     LOGE("Unable to compile.\n");