diff options
author | Rui Ueyama <ruiu@google.com> | 2015-04-02 04:18:54 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2015-04-02 04:18:54 +0000 |
commit | 7d5492d9ab3fe75f66d7251c182be3a45c1ad87e (patch) | |
tree | 442344e925daf7c072b2f4d44d3718d602c039fe /llvm/lib/MC/MCSubtargetInfo.cpp | |
parent | 0052736eb1daf00658de1ddb640717b7fee7a77c (diff) | |
download | bcm5719-llvm-7d5492d9ab3fe75f66d7251c182be3a45c1ad87e.tar.gz bcm5719-llvm-7d5492d9ab3fe75f66d7251c182be3a45c1ad87e.zip |
ELF: Move registerRelocationNames() from TargetHandler to <Arch>ELFLinkingContext.
registerRelocationNames() function is called to register all known
ELF relocation types to the central registry. Since we have separate
LinkingContext class for each ELF machine type, we need to call the
function for each LinkingContext.
However, the function belonged to TargetHandler instead of LinkingContext.
So we needed to do ctx.getTargetHandler().registerRelocationNames().
This patch removes that redundant getTargetHandler call by moving the
function from TargetHandler to LinkingContext.
Conceptually this patch is small, but in reality it's not that small.
It's because the same code is copied to each architecture.
Most of this patch is just repetition. We need to merge them, but
that cannot be done in this patch.
llvm-svn: 233883
Diffstat (limited to 'llvm/lib/MC/MCSubtargetInfo.cpp')
0 files changed, 0 insertions, 0 deletions