OSDN Git Service

[llvm-objdump] - Introduce getRelocsMap() helper. NFCI.
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 22 Jan 2019 14:09:37 +0000 (14:09 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 22 Jan 2019 14:09:37 +0000 (14:09 +0000)
commit5d73c0daaf1c41a324168fb7d04741d758eebfa8
tree72ad41629dc3f0890f0d6c430ae686b896931c16
parentf315bf0876f2a739c4186b027af063b4bc7f14aa
[llvm-objdump] - Introduce getRelocsMap() helper. NFCI.

Currently disassembleObject() is a ~550 lines length function.
This patch extracts the code that creates a section->their relocation
mapping into a new helper function to simplify/reduce it a bit.

Differential revision: https://reviews.llvm.org/D57019

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351824 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-objdump/llvm-objdump.cpp