android: crazy-linker: Minor cleanups and optimization.
Nothin too sexy here, but making small improvements to the code base for long term maintainer happiness, and upcoming CLs that will perform more deep cleanup work. - Adding missing const qualifiers to some LibraryView methods. Note that making LookupSymbol() also const requires more changes that are better left to another CL. Noted with TODO. - Make crazy::SearchResult declaration public by moving it to crazy_linker_util.h - Use a VectorBase non-template class that all Vector<> templates inherit from, in order to reduce the amount of generated code for vectors. - Replace Vector::IndexOf() with Vector::Find() which returns a SearchResult value. Gets rid of pesky 'int' indices for InsertAt / RemoveAt method. - Support ranged-based for loops with begin() / end() declarations. And adjust all callers to use them when that makes sense. Cleaner code. Yeah. BUG=NONE R=lizeb@chromium.org, agrieve@chromium.org, pasko@chromium.org, rmcilroy@chromium.org android: crazy-linker: Small Vector<> optimization. Change-Id: If4d22b85fdd44885159a2bb27626f2942ccb437e Reviewed-on: https://chromium-review.googlesource.com/1090840 Commit-Queue: David Turner <digit@chromium.org> Reviewed-by:Egor Pasko <pasko@chromium.org> Cr-Commit-Position: refs/heads/master@{#565329}
Showing
Please register or sign in to comment