diff options
author | Vladimir Marko <vmarko@google.com> | 2015-04-02 21:25:21 +0100 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2015-04-02 21:36:48 +0100 |
commit | b207e1473dda1730604a28db2b4fa52f2998aeae (patch) | |
tree | f11edd5afaab57f733f18cc6cba66cf84d8a6571 /compiler/compiled_method.h | |
parent | 3795e94a8bd42a1de3a98935f45399f1805a9f6e (diff) | |
download | android_art-b207e1473dda1730604a28db2b4fa52f2998aeae.tar.gz android_art-b207e1473dda1730604a28db2b4fa52f2998aeae.tar.bz2 android_art-b207e1473dda1730604a28db2b4fa52f2998aeae.zip |
Pass linker patches around as const.
Change-Id: I0eabd713d29475db9eb6e186f331dbfb00e0cf6b
Diffstat (limited to 'compiler/compiled_method.h')
-rw-r--r-- | compiler/compiled_method.h | 10 |
1 files changed, 5 insertions, 5 deletions
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<const uint8_t>& vmap_table, const ArrayRef<const uint8_t>& native_gc_map, const ArrayRef<const uint8_t>& cfi_info, - const ArrayRef<LinkerPatch>& patches = ArrayRef<LinkerPatch>()); + const ArrayRef<const LinkerPatch>& patches = ArrayRef<const LinkerPatch>()); virtual ~CompiledMethod(); @@ -336,7 +336,7 @@ class CompiledMethod FINAL : public CompiledCode { const ArrayRef<const uint8_t>& vmap_table, const ArrayRef<const uint8_t>& native_gc_map, const ArrayRef<const uint8_t>& cfi_info, - const ArrayRef<LinkerPatch>& patches = ArrayRef<LinkerPatch>()); + const ArrayRef<const LinkerPatch>& patches = ArrayRef<const LinkerPatch>()); static CompiledMethod* SwapAllocCompiledMethodStackMap( CompilerDriver* driver, @@ -391,8 +391,8 @@ class CompiledMethod FINAL : public CompiledCode { return cfi_info_; } - const SwapVector<LinkerPatch>& GetPatches() const { - return patches_; + ArrayRef<const LinkerPatch> GetPatches() const { + return ArrayRef<const LinkerPatch>(patches_); } private: @@ -417,7 +417,7 @@ class CompiledMethod FINAL : public CompiledCode { // For quick code, a FDE entry for the debug_frame section. SwapVector<uint8_t>* cfi_info_; // For quick code, linker patches needed by the method. - SwapVector<LinkerPatch> patches_; + const SwapVector<LinkerPatch> patches_; }; } // namespace art |