Workaround for x86 build now.
Author: Logan Chien.
Change-Id: I79fe237ad301ac9f79185c87058ff7b6437f0758
diff --git a/src/compiler_llvm/compilation_unit.cc b/src/compiler_llvm/compilation_unit.cc
index fdbf575..8aae161 100644
--- a/src/compiler_llvm/compilation_unit.cc
+++ b/src/compiler_llvm/compilation_unit.cc
@@ -363,6 +363,14 @@
bool CompilationUnit::ExtractCodeAndPrelink(const std::string& elf_image) {
+ if (GetInstructionSet() == kX86) {
+ compiled_code_.push_back(0xccU);
+ compiled_code_.push_back(0xccU);
+ compiled_code_.push_back(0xccU);
+ compiled_code_.push_back(0xccU);
+ return true;
+ }
+
llvm::OwningPtr<llvm::MemoryBuffer> elf_image_buff(
llvm::MemoryBuffer::getMemBuffer(llvm::StringRef(elf_image.data(),
elf_image.size())));