aboutsummaryrefslogtreecommitdiff
path: root/image_index.cc
diff options
context:
space:
mode:
authorEtienne Pierre-doray <etiennep@chromium.org>2018-08-13 18:49:00 +0000
committerCopybara-Service <copybara-worker@google.com>2021-07-25 20:34:45 -0700
commit8f9a9e7376eac67e03f3f2aea2c020132f9f2fe9 (patch)
tree6cca9d6c234f1bfc0d6f528e8de798fca318f064 /image_index.cc
parente57c4e6bb4c122686c16f40e0b9d50a2e683d42b (diff)
downloadzucchini-8f9a9e7376eac67e03f3f2aea2c020132f9f2fe9.tar.gz
[Zucchini]: Remove IndirectReference.
IndirectReference brings complexity conceptually. The purpose of IndirectReference was to speed-up look-ups. Turns out that there is no significant impact on patching time when using direct references. Furthermore, this reduces coupling between TargetPool and ReferenceSet. Change-Id: Ic50dbf59e483a7fa1480c8eb37f4b1d01a53401a Reviewed-on: https://chromium-review.googlesource.com/1136578 Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org> Reviewed-by: Samuel Huang <huangs@chromium.org> Cr-Commit-Position: refs/heads/master@{#582653} NOKEYCHECK=True GitOrigin-RevId: 0434f5b4a564c6295e62a3996826f8627b8aa617
Diffstat (limited to 'image_index.cc')
-rw-r--r--image_index.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/image_index.cc b/image_index.cc
index 6c7a28b..1efe5d8 100644
--- a/image_index.cc
+++ b/image_index.cc
@@ -47,7 +47,7 @@ bool ImageIndex::IsToken(offset_t location) const {
return true;
// |location| points into a Reference.
- IndirectReference reference = refs(type).at(location);
+ Reference reference = refs(type).at(location);
// Only the first byte of a reference is a token.
return location == reference.location;
}