Delete EhInputSection::getOffset.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 20 Jul 2016 20:19:58 +0000 (20:19 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 20 Jul 2016 20:19:58 +0000 (20:19 +0000)
commit2197311c31ced1aff8d965294e190aaae1ac729b
tree778a2c47a2a771d124ce13ff024ada498a848abe
parent15ff2d6d0cc422dc672f3726f05ac98f85992e42
Delete EhInputSection::getOffset.

We no longer need it for relocations in .eh_frame.

The only relocations that point to .eh_frame are the ones trying to
find the output .eh_frame.

This actually fixes a bug in the symbol value code. It was not
handling -1 as an indicator for a piece not being included in the
output.

llvm-svn: 276175
lld/ELF/InputSection.cpp
lld/ELF/InputSection.h
lld/ELF/Relocations.cpp
lld/test/ELF/eh-frame-marker.s