Invert the section relocation map.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 11 Feb 2015 23:38:33 +0000 (23:38 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 11 Feb 2015 23:38:33 +0000 (23:38 +0000)
commit9fbdbaa2d1d970c02fce2f42db62211a9f3edf69
tree137952a9b3228716fc3cfe51d1b3a6db0af1b7d5
parent723be8820c9f9cc1cc1799c139128fc10c39c7b0
Invert the section relocation map.

It now points from rel section to section. Use it to set sh_info, avoiding
a brittle name lookup.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228889 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/ELFObjectWriter.cpp