Update documentation and add deprecate attribute.
Change-Id: I4a73b739789cedeba1cf7e64be11aaaa09a9474b
diff --git a/README.html b/README.html
index 76e8dda..0b8b447 100644
--- a/README.html
+++ b/README.html
@@ -389,7 +389,8 @@
<li><strong>bccReadBC</strong> - Set the source bitcode for compilation</li>
<li><strong>bccReadModule</strong> - Set the llvm::Module for compilation</li>
<li><strong>bccLinkBC</strong> - Set the library bitcode for linking</li>
-<li><strong>bccPrepareExecutable</strong> - Create the in-memory executable by either
+<li><strong>bccPrepareExecutable</strong> - <em>deprecated</em> - Use bccPrepareExecutableEx instead</li>
+<li><strong>bccPrepareExecutableEx</strong> - Create the in-memory executable by either
just-in-time compilation or cache loading</li>
<li><strong>bccGetFuncAddr</strong> - Get the entry address of the function</li>
<li><strong>bccDisposeScript</strong> - Destroy bcc script and release the resources</li>
diff --git a/README.rst b/README.rst
index 98381e6..cf40138 100644
--- a/README.rst
+++ b/README.rst
@@ -94,7 +94,9 @@
* **bccLinkBC** - Set the library bitcode for linking
-* **bccPrepareExecutable** - Create the in-memory executable by either
+* **bccPrepareExecutable** - *deprecated* - Use bccPrepareExecutableEx instead
+
+* **bccPrepareExecutableEx** - Create the in-memory executable by either
just-in-time compilation or cache loading
* **bccGetFuncAddr** - Get the entry address of the function
diff --git a/include/bcc/bcc.h b/include/bcc/bcc.h
index b50cc8b..421a5c3 100644
--- a/include/bcc/bcc.h
+++ b/include/bcc/bcc.h
@@ -112,7 +112,7 @@
// Deprecated (Use bccPrepareExecutableEx instead)
int bccPrepareExecutable(BCCScriptRef script,
char const *cachePath,
- unsigned long flags);
+ unsigned long flags) __attribute__((deprecated));
int bccPrepareExecutableEx(BCCScriptRef script,
char const *cacheDir,