From 1212a022fa5f8ef9585d765b1809521812af882c Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Mon, 4 Mar 2013 10:48:41 -0800 Subject: Move the Compiler to CompilerDriver. Change-Id: I0bb4d3c2b79b45fd8ef180688c767712b0c55978 --- src/compiler/dex/write_elf.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/compiler/dex/write_elf.cc') diff --git a/src/compiler/dex/write_elf.cc b/src/compiler/dex/write_elf.cc index 1fd8a94926..a78d98e8cb 100644 --- a/src/compiler/dex/write_elf.cc +++ b/src/compiler/dex/write_elf.cc @@ -14,14 +14,17 @@ * limitations under the License. */ -#include "compiler.h" #include "elf_writer.h" #include "os.h" -extern "C" bool WriteElf(art::Compiler& compiler, +namespace art { +class CompilerDriver; +} // namespace art + +extern "C" bool WriteElf(art::CompilerDriver& driver, std::vector& oat_contents, art::File* file) { - return art::ElfWriter::Create(file, oat_contents, compiler); + return art::ElfWriter::Create(file, oat_contents, driver); } extern "C" bool FixupElf(art::File* file, uintptr_t oat_data_begin) { return art::ElfWriter::Fixup(file, oat_data_begin); -- cgit v1.2.3-59-g8ed1b