llvm-project/lld/ELF/Arch
George Rimar f9936e1fc9 [ELF] - Eliminate Target::isPicRel method.
As was mentioned in comments for D45158,
isPicRel's name does not make much sense,
because what this method does is checks if
we need to create the dynamic relocation or not.

Instead of renaming it to something different,
we can 'isPicRel' completely.

We can reuse the getDynRel method.
They are logically very close, getDynRel can just return
R_*_NONE in case no dynamic relocation should be produced
and that would simplify things and avoid functionality
correlation/duplication with 'isPicRel'.

The patch does this change.

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

llvm-svn: 329275
2018-04-05 12:07:20 +00:00
..
AArch64.cpp [ELF] - Eliminate Target::isPicRel method. 2018-04-05 12:07:20 +00:00
AMDGPU.cpp Rename SymbolBody -> Symbol 2017-11-03 21:21:47 +00:00
ARM.cpp [ELF] - Eliminate Target::isPicRel method. 2018-04-05 12:07:20 +00:00
AVR.cpp Rename SymbolBody -> Symbol 2017-11-03 21:21:47 +00:00
Mips.cpp [ELF] - Eliminate Target::isPicRel method. 2018-04-05 12:07:20 +00:00
MipsArchTree.cpp [ELF][mips] Print the full file path for files with incompatible ISA 2017-12-07 16:08:59 +00:00
PPC.cpp [ELF] Recommit 327248 with Arm using the .got for _GLOBAL_OFFSET_TABLE_ 2018-03-19 06:52:51 +00:00
PPC64.cpp Define TrapInst for ppc64. 2018-04-02 21:11:13 +00:00
SPARCV9.cpp Do not use template for check{Int,UInt,IntUInt,Alignment}. 2018-03-29 22:40:52 +00:00
X86.cpp [ELF] - Relax checks for R_386_8/R_386_16 relocations. 2018-04-03 12:19:04 +00:00
X86_64.cpp [ELF] - Eliminate Target::isPicRel method. 2018-04-05 12:07:20 +00:00