From 265091e581c9f643b37e7966890911f09e223269 Mon Sep 17 00:00:00 2001 From: Brian Carlstrom Date: Wed, 30 Jan 2013 14:08:26 -0800 Subject: Remove ExtractCodeAndPrelink and switch Portable to MCLinker Change-Id: Ia2459c7da6b79e0a1c0f1148c6e28ad9cbbe27a2 --- src/compiler/dex/compiler_ir.h | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'src/compiler/dex/compiler_ir.h') diff --git a/src/compiler/dex/compiler_ir.h b/src/compiler/dex/compiler_ir.h index 4ab98a6dc7..f8cdd34b60 100644 --- a/src/compiler/dex/compiler_ir.h +++ b/src/compiler/dex/compiler_ir.h @@ -18,15 +18,18 @@ #define ART_SRC_COMPILER_DEX_COMPILER_IR_H_ #include -#include "dex_instruction.h" + +#include + +#include "compiler/dex/quick/codegen.h" #include "compiler/driver/compiler_driver.h" #include "compiler/driver/dex_compilation_unit.h" -#include "compiler_utility.h" -#include "safe_map.h" -#include "compiler/llvm/ir_builder.h" #include "compiler/llvm/intrinsic_helper.h" -#include "llvm/Module.h" +#include "compiler/llvm/ir_builder.h" #include "compiler_enums.h" +#include "compiler_utility.h" +#include "dex_instruction.h" +#include "safe_map.h" namespace art { @@ -43,6 +46,9 @@ namespace art { struct ArenaBitVector; struct LIR; class LLVMInfo; +namespace llvm { +class LlvmCompilationUnit; +} // namespace llvm struct PromotionMap { RegLocationType core_location:3; @@ -348,6 +354,7 @@ struct CompilationUnit { mstats(NULL), checkstats(NULL), gen_bitcode(false), + llvm_compilation_unit(NULL), llvm_info(NULL), context(NULL), module(NULL), @@ -507,7 +514,11 @@ struct CompilationUnit { Memstats* mstats; Checkstats* checkstats; bool gen_bitcode; + + // Fields for Portable + llvm::LlvmCompilationUnit* llvm_compilation_unit; LLVMInfo* llvm_info; + std::string symbol; ::llvm::LLVMContext* context; ::llvm::Module* module; ::llvm::Function* func; @@ -516,6 +527,7 @@ struct CompilationUnit { ::llvm::BasicBlock* placeholder_bb; ::llvm::BasicBlock* entry_bb; ::llvm::BasicBlock* entryTarget_bb; + std::string bitcode_filename; GrowableList llvm_values; int32_t temp_name; -- cgit v1.2.3-59-g8ed1b