Remove dependency on llvm/Support/ELF.h by using linux's elf.h.
Change-Id: Iefe66af9958641ac7f08fdc22f438d976e5b4d54
diff --git a/compiler/elf_writer.h b/compiler/elf_writer.h
index dbc986a..99dfc56 100644
--- a/compiler/elf_writer.h
+++ b/compiler/elf_writer.h
@@ -18,14 +18,12 @@
#define ART_COMPILER_ELF_WRITER_H_
#include <stdint.h>
-
#include <cstddef>
#include <string>
#include <vector>
-#include <llvm/Support/ELF.h>
-
#include "base/macros.h"
+#include "elf_utils.h"
#include "os.h"
namespace art {
@@ -44,7 +42,7 @@
size_t& oat_data_offset);
// Returns runtime oat_data runtime address for an opened ElfFile.
- static ::llvm::ELF::Elf32_Addr GetOatDataAddress(ElfFile* elf_file);
+ static Elf32_Addr GetOatDataAddress(ElfFile* elf_file);
protected:
ElfWriter(const CompilerDriver& driver, File* elf_file);