From b207e1473dda1730604a28db2b4fa52f2998aeae Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Thu, 2 Apr 2015 21:25:21 +0100 Subject: Pass linker patches around as const. Change-Id: I0eabd713d29475db9eb6e186f331dbfb00e0cf6b --- compiler/compiled_method.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'compiler/compiled_method.cc') diff --git a/compiler/compiled_method.cc b/compiler/compiled_method.cc index 03370db6c0..eeed877444 100644 --- a/compiler/compiled_method.cc +++ b/compiler/compiled_method.cc @@ -132,7 +132,7 @@ CompiledMethod::CompiledMethod(CompilerDriver* driver, const ArrayRef& vmap_table, const ArrayRef& native_gc_map, const ArrayRef& cfi_info, - const ArrayRef& patches) + const ArrayRef& patches) : CompiledCode(driver, instruction_set, quick_code, !driver->DedupeEnabled()), owns_arrays_(!driver->DedupeEnabled()), frame_size_in_bytes_(frame_size_in_bytes), core_spill_mask_(core_spill_mask), @@ -179,7 +179,7 @@ CompiledMethod* CompiledMethod::SwapAllocCompiledMethod( const ArrayRef& vmap_table, const ArrayRef& native_gc_map, const ArrayRef& cfi_info, - const ArrayRef& patches) { + const ArrayRef& patches) { SwapAllocator alloc(driver->GetSwapSpaceAllocator()); CompiledMethod* ret = alloc.allocate(1); alloc.construct(ret, driver, instruction_set, quick_code, frame_size_in_bytes, core_spill_mask, @@ -200,7 +200,8 @@ CompiledMethod* CompiledMethod::SwapAllocCompiledMethodStackMap( CompiledMethod* ret = alloc.allocate(1); alloc.construct(ret, driver, instruction_set, quick_code, frame_size_in_bytes, core_spill_mask, fp_spill_mask, nullptr, ArrayRef(), stack_map, - ArrayRef(), ArrayRef(), ArrayRef()); + ArrayRef(), ArrayRef(), + ArrayRef()); return ret; } @@ -217,7 +218,7 @@ CompiledMethod* CompiledMethod::SwapAllocCompiledMethodCFI( alloc.construct(ret, driver, instruction_set, quick_code, frame_size_in_bytes, core_spill_mask, fp_spill_mask, nullptr, ArrayRef(), ArrayRef(), ArrayRef(), - cfi_info, ArrayRef()); + cfi_info, ArrayRef()); return ret; } -- cgit v1.2.3-59-g8ed1b