Represent symbols with a SymbolIndex,SectionIndex pair.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 5 Jun 2013 17:54:19 +0000 (17:54 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 5 Jun 2013 17:54:19 +0000 (17:54 +0000)
commitbcb1ea8ef62fba49d0e634e1943f829687323314
tree6664c50a10afb343d84d779f27c4c20d5b1e1b3a
parent31588f300500d290e43952fcd8dd8e7f2bb460eb
Represent symbols with a SymbolIndex,SectionIndex pair.

With this patch we use the SectionIndex directly, instead of counting the
number of symbol tables. This saves a DenseMap lookup every time we want to
find which symbol a relocation refers to.

Also simplify based on the fact that there is at most one SHT_SYMTAB and one
SHT_DYNSYM.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183326 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ELF.h