summaryrefslogtreecommitdiffstats
path: root/compiler/llvm/gbc_expander.cc
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2013-09-06 11:11:25 -0700
committerIan Rogers <irogers@google.com>2013-09-06 11:11:44 -0700
commit9b297bfc588c7d38efd12a6f38cd2710fc513ee3 (patch)
tree681f512183be6d47ec76b18c02457896b4cd15cc /compiler/llvm/gbc_expander.cc
parent65ec92cf13c9d11c83711443a02e4249163d47f1 (diff)
downloadart-9b297bfc588c7d38efd12a6f38cd2710fc513ee3.zip
art-9b297bfc588c7d38efd12a6f38cd2710fc513ee3.tar.gz
art-9b297bfc588c7d38efd12a6f38cd2710fc513ee3.tar.bz2
Refactor CompilerDriver::Compute..FieldInfo
Don't use non-const reference arguments. Move ins before outs. Change-Id: I7b251156388d8f07513b3da62ebfd29e5fd9ff76
Diffstat (limited to 'compiler/llvm/gbc_expander.cc')
-rw-r--r--compiler/llvm/gbc_expander.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/llvm/gbc_expander.cc b/compiler/llvm/gbc_expander.cc
index 2459fde..b206a25 100644
--- a/compiler/llvm/gbc_expander.cc
+++ b/compiler/llvm/gbc_expander.cc
@@ -1630,7 +1630,7 @@ llvm::Value* GBCExpanderPass::Expand_HLIGet(llvm::CallInst& call_inst,
int field_offset;
bool is_volatile;
bool is_fast_path = driver_->ComputeInstanceFieldInfo(
- field_idx, dex_compilation_unit_, field_offset, is_volatile, false);
+ field_idx, dex_compilation_unit_, false, &field_offset, &is_volatile);
if (!is_fast_path) {
llvm::Function* runtime_func;
@@ -1692,7 +1692,7 @@ void GBCExpanderPass::Expand_HLIPut(llvm::CallInst& call_inst,
int field_offset;
bool is_volatile;
bool is_fast_path = driver_->ComputeInstanceFieldInfo(
- field_idx, dex_compilation_unit_, field_offset, is_volatile, true);
+ field_idx, dex_compilation_unit_, true, &field_offset, &is_volatile);
if (!is_fast_path) {
llvm::Function* runtime_func;
@@ -1897,8 +1897,8 @@ llvm::Value* GBCExpanderPass::Expand_HLSget(llvm::CallInst& call_inst,
bool is_volatile;
bool is_fast_path = driver_->ComputeStaticFieldInfo(
- field_idx, dex_compilation_unit_, field_offset, ssb_index,
- is_referrers_class, is_volatile, false);
+ field_idx, dex_compilation_unit_, false,
+ &field_offset, &ssb_index, &is_referrers_class, &is_volatile);
llvm::Value* static_field_value;
@@ -1981,8 +1981,8 @@ void GBCExpanderPass::Expand_HLSput(llvm::CallInst& call_inst,
bool is_volatile;
bool is_fast_path = driver_->ComputeStaticFieldInfo(
- field_idx, dex_compilation_unit_, field_offset, ssb_index,
- is_referrers_class, is_volatile, true);
+ field_idx, dex_compilation_unit_, true,
+ &field_offset, &ssb_index, &is_referrers_class, &is_volatile);
if (!is_fast_path) {
llvm::Function* runtime_func;