Use DataExtractor to decode SLEB128 in android_relas.
authorRahman Lavaee <rahmanl@google.com>
Fri, 22 Jan 2021 17:13:30 +0000 (09:13 -0800)
committerRahman Lavaee <rahmanl@google.com>
Thu, 28 Jan 2021 09:35:18 +0000 (01:35 -0800)
commit3ca502a7d60787abe14db1fa541950ff79c7585b
tree0f9ce714735e76d2c9b30eead8d069bb3a2f7252
parent374862d71c1a2f63557a27f1555b37ff0f75117e
Use DataExtractor to decode SLEB128 in android_relas.

A simple refactoring patch which let us use `DataExtractor::getSLEB128` rather than using a lambda function.

Differential Revision: https://reviews.llvm.org/D95158
llvm/lib/Object/ELF.cpp
llvm/test/tools/llvm-readobj/ELF/packed-relocs-errors.s