From 3773cd046b1c34569f4711666788bf8a389c7857 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Fri, 10 Apr 2015 09:28:22 -0700 Subject: ART: Remove WriteElf from Compiler As Portable is gone, we only have one elf_writer left. It also allows to put the decision for 32b vs 64b ELF into a central point. Change-Id: Iae67d06df85268b3f0ee5725abc65edd23eb2499 --- compiler/optimizing/optimizing_compiler.cc | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'compiler/optimizing/optimizing_compiler.cc') diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index 0e02212867..a428c75c8c 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -200,20 +200,6 @@ class OptimizingCompiler FINAL : public Compiler { InstructionSetPointerSize(GetCompilerDriver()->GetInstructionSet()))); } - bool WriteElf(art::File* file, - OatWriter* oat_writer, - const std::vector& dex_files, - const std::string& android_root, - bool is_host) const OVERRIDE SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { - if (kProduce64BitELFFiles && Is64BitInstructionSet(GetCompilerDriver()->GetInstructionSet())) { - return art::ElfWriterQuick64::Create(file, oat_writer, dex_files, android_root, is_host, - *GetCompilerDriver()); - } else { - return art::ElfWriterQuick32::Create(file, oat_writer, dex_files, android_root, is_host, - *GetCompilerDriver()); - } - } - void InitCompilationUnit(CompilationUnit& cu) const OVERRIDE; void Init() OVERRIDE; -- cgit v1.2.3-59-g8ed1b