summaryrefslogtreecommitdiff
path: root/patchoat/patchoat.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2017-09-05 13:11:57 +0100
committer Vladimir Marko <vmarko@google.com> 2017-09-05 13:26:54 +0100
commitcd87c3ee6fefc505010c795284cfc4bca076edf2 (patch)
tree074c0326206fe4a52dc8ebfa09657ef040d88022 /patchoat/patchoat.cc
parent39d44ba52b512cdfa7a0a2fccc7f77d28a15329e (diff)
Clean up ImageHeader section getters.
Test: m art-test-host-gtest Test: testrunner.py --host Change-Id: Iaea7ce6f9bc3ff3c6d9bb6fb598aa62333ebf30c
Diffstat (limited to 'patchoat/patchoat.cc')
-rw-r--r--patchoat/patchoat.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/patchoat/patchoat.cc b/patchoat/patchoat.cc
index efa2969eea..f54e81f9d3 100644
--- a/patchoat/patchoat.cc
+++ b/patchoat/patchoat.cc
@@ -468,7 +468,7 @@ class PatchOat::FixupRootVisitor : public RootVisitor {
};
void PatchOat::PatchInternedStrings(const ImageHeader* image_header) {
- const auto& section = image_header->GetImageSection(ImageHeader::kSectionInternedStrings);
+ const auto& section = image_header->GetInternedStringsSection();
InternTable temp_table;
// Note that we require that ReadFromMemory does not make an internal copy of the elements.
// This also relies on visit roots not doing any verification which could fail after we update
@@ -479,7 +479,7 @@ void PatchOat::PatchInternedStrings(const ImageHeader* image_header) {
}
void PatchOat::PatchClassTable(const ImageHeader* image_header) {
- const auto& section = image_header->GetImageSection(ImageHeader::kSectionClassTable);
+ const auto& section = image_header->GetClassTableSection();
if (section.Size() == 0) {
return;
}