Have getRelExpr handle all cases on x86.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 18 Apr 2016 12:07:13 +0000 (12:07 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 18 Apr 2016 12:07:13 +0000 (12:07 +0000)
commit3f5d634c7334c15bdf2e68a977c9c5a7bf2af2ec
treeaf4e7886f41fabc5af815809644433a836e46a0c
parent4b18a510a2bb9371352e0f4c6c577a6ffba825f5
Have getRelExpr handle all cases on x86.

This requires adding a few more expression types, but is already a small
simplification. Having Writer.cpp know the exact expression will also
allow further simplifications.

llvm-svn: 266604
lld/ELF/InputSection.cpp
lld/ELF/InputSection.h
lld/ELF/Target.cpp
lld/ELF/Writer.cpp