Simplify mapping from relocation sections to relocated sections.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 6 Apr 2015 03:09:30 +0000 (03:09 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 6 Apr 2015 03:09:30 +0000 (03:09 +0000)
commit01183f64929aa5222b7e8d0a27c5d7f71722f302
tree3a0f791169fbe87af8c8eb43bbb676211ae736c9
parentd0440d27051c58eabcce37dac4be1e366592c6ac
Simplify mapping from relocation sections to relocated sections.

Just store the section in MCSectionELF. This avoids multiple hash lookups.

This will also be used by ARM_EXIDX.

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