diff options
author | 2013-01-30 14:08:26 -0800 | |
---|---|---|
committer | 2013-03-06 14:08:46 -0800 | |
commit | 265091e581c9f643b37e7966890911f09e223269 (patch) | |
tree | ae493ce6c3537aebc3a85f59a73500fa819a7baf /src/compiler/dex/compiler_ir.h | |
parent | 4c1c283a7410784e9cab309f868248690b788a9c (diff) |
Remove ExtractCodeAndPrelink and switch Portable to MCLinker
Change-Id: Ia2459c7da6b79e0a1c0f1148c6e28ad9cbbe27a2
Diffstat (limited to 'src/compiler/dex/compiler_ir.h')
-rw-r--r-- | src/compiler/dex/compiler_ir.h | 22 |
1 files changed, 17 insertions, 5 deletions
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 <vector> -#include "dex_instruction.h" + +#include <llvm/Module.h> + +#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; |