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.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'compiler/compiled_method.h') diff --git a/compiler/compiled_method.h b/compiler/compiled_method.h index 7497b175fc..506b47b68a 100644 --- a/compiler/compiled_method.h +++ b/compiler/compiled_method.h @@ -320,7 +320,7 @@ class CompiledMethod FINAL : public CompiledCode { const ArrayRef& vmap_table, const ArrayRef& native_gc_map, const ArrayRef& cfi_info, - const ArrayRef& patches = ArrayRef()); + const ArrayRef& patches = ArrayRef()); virtual ~CompiledMethod(); @@ -336,7 +336,7 @@ class CompiledMethod FINAL : public CompiledCode { const ArrayRef& vmap_table, const ArrayRef& native_gc_map, const ArrayRef& cfi_info, - const ArrayRef& patches = ArrayRef()); + const ArrayRef& patches = ArrayRef()); static CompiledMethod* SwapAllocCompiledMethodStackMap( CompilerDriver* driver, @@ -391,8 +391,8 @@ class CompiledMethod FINAL : public CompiledCode { return cfi_info_; } - const SwapVector& GetPatches() const { - return patches_; + ArrayRef GetPatches() const { + return ArrayRef(patches_); } private: @@ -417,7 +417,7 @@ class CompiledMethod FINAL : public CompiledCode { // For quick code, a FDE entry for the debug_frame section. SwapVector* cfi_info_; // For quick code, linker patches needed by the method. - SwapVector patches_; + const SwapVector patches_; }; } // namespace art -- cgit v1.2.3