Delete LinkerScript::getSectionIndex.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 5 May 2017 21:34:26 +0000 (21:34 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 5 May 2017 21:34:26 +0000 (21:34 +0000)
commit660c9ab9292f9bf42f965f2b2153ea82e0e6c46a
tree410e5c3728834c1c1ad2183bf38bada43fae0174
parent8f8241e5c7ff4b47cc3128ac7cffc5e1e1449b32
Delete LinkerScript::getSectionIndex.

We can set SectionIndex tentatively as we process the linker script
instead of looking it repeatedly.

In general we should try to have as few name lookups as possible.

llvm-svn: 302299
lld/ELF/LinkerScript.cpp
lld/ELF/LinkerScript.h
lld/ELF/OutputSections.cpp
lld/ELF/Writer.cpp