Remove ELF filename argument.
We are embedding the ELF image in the Oat file. We don't
need ELF filename anymore.
(cherry picked from commit b245ccacf447b014838535a7d8a58365642f0c3d)
Change-Id: I235429222401100c09381ba44a3978f38d5b499c
diff --git a/src/compiler_llvm/compiler_llvm.cc b/src/compiler_llvm/compiler_llvm.cc
index e02c913..a646b6f 100644
--- a/src/compiler_llvm/compiler_llvm.cc
+++ b/src/compiler_llvm/compiler_llvm.cc
@@ -125,10 +125,7 @@
curr_cunit_ = new CompilationUnit(insn_set_, cunit_idx);
- // Setup output filename
- curr_cunit_->SetElfFileName(
- StringPrintf("%s-%zu", elf_filename_.c_str(), cunit_idx));
-
+ // Setup bitcode output filename
if (IsBitcodeFileNameAvailable()) {
curr_cunit_->SetBitcodeFileName(
StringPrintf("%s-%zu", bitcode_filename_.c_str(), cunit_idx));
@@ -337,11 +334,6 @@
return ContextOf(compiler)->CreateInvokeStub(is_static, shorty);
}
-extern "C" void compilerLLVMSetElfFileName(art::Compiler& compiler,
- std::string const& filename) {
- ContextOf(compiler)->SetElfFileName(filename);
-}
-
extern "C" void compilerLLVMSetBitcodeFileName(art::Compiler& compiler,
std::string const& filename) {
ContextOf(compiler)->SetBitcodeFileName(filename);