Move the Compiler to CompilerDriver.
Change-Id: I0bb4d3c2b79b45fd8ef180688c767712b0c55978
diff --git a/src/compiler/dex/write_elf.cc b/src/compiler/dex/write_elf.cc
index 1fd8a9492..a78d98e 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<uint8_t>& 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);