Remove unused code.
Change-Id: I5fd240ed03654af1ac6fcbe4f45d5e05825374a2
diff --git a/lib/ExecutionEngine/Compiler.cpp b/lib/ExecutionEngine/Compiler.cpp
index 09c0890..16bd687 100644
--- a/lib/ExecutionEngine/Compiler.cpp
+++ b/lib/ExecutionEngine/Compiler.cpp
@@ -257,34 +257,6 @@
}
-#if USE_MCJIT
-// input objPath: For example,
-// /data/user/0/com.example.android.rs.fountain/cache/
-// @com.example.android.rs.fountain:raw@fountain.oBCC
-// output objPath: /data/user/0/com.example.android.rs.fountain/cache/
-// fountain.o
-//
-bool Compiler::getObjPath(std::string &objPath) {
- size_t found0 = objPath.find("@");
- size_t found1 = objPath.rfind("@");
-
- if (found0 == found1 ||
- found0 == std::string::npos ||
- found1 == std::string::npos) {
- LOGE("Ill formatted resource name '%s'. The name should contain 2 @s",
- objPath.c_str());
- return false;
- }
-
- objPath.replace(found0, found1 - found0 + 1, "", 0);
- objPath.resize(objPath.length() - 3);
-
- LOGV("objPath = %s", objPath.c_str());
- return true;
-}
-#endif
-
-
llvm::Module *Compiler::parseBitcodeFile(llvm::MemoryBuffer *MEM) {
llvm::Module *result = llvm::ParseBitcodeFile(MEM, *mContext, &mError);
diff --git a/lib/ExecutionEngine/Compiler.h b/lib/ExecutionEngine/Compiler.h
index c6938a6..6030e40 100644
--- a/lib/ExecutionEngine/Compiler.h
+++ b/lib/ExecutionEngine/Compiler.h
@@ -135,8 +135,6 @@
#endif
#if USE_MCJIT
- bool getObjPath(std::string &objPath);
-
void *getSymbolAddress(char const *name);
const llvm::SmallVector<char, 1024> &getELF() const {