Add a -build-checksum flag to bcc

bug 19216507

Add a flag to bcc to pass a build checksum.  The checksum is passed to
RSEmbedInfo pass via LLVM metadata.

The old checksum path is tied to RSInfo.  Removing this path can be done
along with RSInfo removal.

Change-Id: I3f21c96ddcfe42c16754fbb7749a72595f90964d
diff --git a/lib/Renderscript/RSEmbedInfo.cpp b/lib/Renderscript/RSEmbedInfo.cpp
index 0ae97a2..731e778 100644
--- a/lib/Renderscript/RSEmbedInfo.cpp
+++ b/lib/Renderscript/RSEmbedInfo.cpp
@@ -84,6 +84,8 @@
     const char **pragmaKeyList = me.getPragmaKeyList();
     const char **pragmaValueList = me.getPragmaValueList();
     bool isThreadable = me.isThreadable();
+    const char *buildChecksum = me.getBuildChecksum();
+
     size_t i;
 
     // We use a simple text format here that the compatibility library can
@@ -121,6 +123,10 @@
     }
     s << "isThreadable: " << ((isThreadable) ? "yes" : "no") << "\n";
 
+    if (buildChecksum != nullptr) {
+      s << "buildChecksum: " << buildChecksum << "\n";
+    }
+
     s.flush();
     return str;
   }