Delete getSectionHdr.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 25 Oct 2016 16:14:25 +0000 (16:14 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 25 Oct 2016 16:14:25 +0000 (16:14 +0000)
commit58139d1758c116e4f86d859fe99b11dafca1ec9f
treef51c308e9414a11c834f9f240506c87030e50276
parente3de15253003ae0f6c0e72242d7cacf6ab7faf73
Delete getSectionHdr.

We were fairly inconsistent as to what information should be accessed
with getSectionHdr and what information (like alignment) was stored
elsewhere.

Now all section info has a dedicated getter. The code is also a bit
more compact.

llvm-svn: 285079
lld/ELF/ICF.cpp
lld/ELF/InputSection.cpp
lld/ELF/InputSection.h
lld/ELF/LinkerScript.cpp
lld/ELF/MarkLive.cpp
lld/ELF/OutputSections.cpp
lld/ELF/Relocations.cpp
lld/ELF/Writer.cpp