Simplify processRelocAux.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 26 Apr 2018 17:22:44 +0000 (17:22 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 26 Apr 2018 17:22:44 +0000 (17:22 +0000)
commit06cb7c877316ad3ed8fdb5b42ea72436192fae31
tree4536f93c617f67a7724476c25fcf49d689162190
parent8c4b0ce2b10d1ca9cce2a10d99d144ca8661468b
Simplify processRelocAux.

It returns a different Expr only in the case of creating a function
symbol pointing to its plt entry. We can just add a call to
addPltEntry to avoid that and return void.

With this patch further simplifications of how we handle copy
relocations are possible.

llvm-svn: 330960
lld/ELF/Relocations.cpp
lld/test/ELF/got32-i386-pie-rw.s