diff options
author | 2015-12-01 10:16:19 +0000 | |
---|---|---|
committer | 2015-12-01 10:16:19 +0000 | |
commit | d1744d449cf2b56af7e0896b3729fac2a414e3af (patch) | |
tree | cd23e1e0a3cea10cc9a9ae8269a01f75ada8ef0e /compiler/driver/compiler_driver.cc | |
parent | e51e3f988ba91f0469757738fa55f835e16e37d9 (diff) | |
parent | 10c13565474de2786aad7c2e79757ea250747a15 (diff) |
Merge "Refactor oat file writing to give Dex2Oat more control."
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
-rw-r--r-- | compiler/driver/compiler_driver.cc | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index d67087edd9..9d3af1681a 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -45,7 +45,6 @@ #include "dex/quick/dex_file_method_inliner.h" #include "dex/quick/dex_file_to_method_inliner_map.h" #include "driver/compiler_options.h" -#include "elf_writer_quick.h" #include "jni_internal.h" #include "object_lock.h" #include "profiler.h" @@ -77,9 +76,6 @@ namespace art { static constexpr bool kTimeCompileMethod = !kIsDebugBuild; -// Whether to produce 64-bit ELF files for 64-bit targets. -static constexpr bool kProduce64BitELFFiles = true; - // Whether classes-to-compile and methods-to-compile are only applied to the boot image, or, when // given, too all compilations. static constexpr bool kRestrictCompilationFiltersToImage = true; @@ -2514,19 +2510,6 @@ bool CompilerDriver::RequiresConstructorBarrier(Thread* self, const DexFile* dex return freezing_constructor_classes_.count(ClassReference(dex_file, class_def_index)) != 0; } -bool CompilerDriver::WriteElf(const std::string& android_root, - bool is_host, - const std::vector<const art::DexFile*>& dex_files, - OatWriter* oat_writer, - art::File* file) - SHARED_REQUIRES(Locks::mutator_lock_) { - if (kProduce64BitELFFiles && Is64BitInstructionSet(GetInstructionSet())) { - return art::ElfWriterQuick64::Create(file, oat_writer, dex_files, android_root, is_host, *this); - } else { - return art::ElfWriterQuick32::Create(file, oat_writer, dex_files, android_root, is_host, *this); - } -} - bool CompilerDriver::SkipCompilation(const std::string& method_name) { if (!profile_present_) { return false; |