Simplify relocation offset adjustment.
authorRui Ueyama <ruiu@google.com>
Sun, 26 Mar 2017 02:26:33 +0000 (02:26 +0000)
committerRui Ueyama <ruiu@google.com>
Sun, 26 Mar 2017 02:26:33 +0000 (02:26 +0000)
commit08aede362b5fa985b27c1dcf3bde42641d95269a
treed0bb112bad355ef655d372a7b0e074627642aa3d
parent5eb585836a163caa49f305e25a84d6e01b21923d
Simplify relocation offset adjustment.

Previously, relocation offsets are recalculated for .eh_frame sections
inside the main loop, and that messed up the main loop. This patch
separates that logic into a dedicated class.

llvm-svn: 298785
lld/ELF/Relocations.cpp