Remove bccLoadBinary and remove the outdated comments (Now, invoking
Compiler::readBC is before knowing cache hit or not.)
Change-Id: I32fb075310abebdb3a7401a75fa76443d0a20c58
diff --git a/lib/bcc/Compiler.cpp b/lib/bcc/Compiler.cpp
index d3f67b6..3791f08 100644
--- a/lib/bcc/Compiler.cpp
+++ b/lib/bcc/Compiler.cpp
@@ -283,15 +283,11 @@
// Compiler::readBC
// Parameters:
-// resName: NULL means don't use cache.
-// Note: If "cache-hit but bccLoadBinary fails for some reason", still
-// pass in the resName.
-// Rationale: So we may have future cache-hit.
//
int Compiler::readBC(const char *bitcode,
size_t bitcodeSize,
- const BCCchar *resName,
- const BCCchar *cacheDir) {
+ const BCCchar *resName /* Deprecated */,
+ const BCCchar *cacheDir /* Deprecated */) {
llvm::OwningPtr<llvm::MemoryBuffer> MEM;
if (bitcode == NULL || bitcodeSize <= 0)
@@ -347,7 +343,6 @@
}
-// Deprecated: interface for bccCompileBC()
int Compiler::compile() {
llvm::TargetData *TD = NULL;