summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCSubtargetInfo.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-04-02 04:18:54 +0000
committerRui Ueyama <ruiu@google.com>2015-04-02 04:18:54 +0000
commit7d5492d9ab3fe75f66d7251c182be3a45c1ad87e (patch)
tree442344e925daf7c072b2f4d44d3718d602c039fe /llvm/lib/MC/MCSubtargetInfo.cpp
parent0052736eb1daf00658de1ddb640717b7fee7a77c (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud