summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-readobj/Error.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-06-29 12:38:31 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-06-29 12:38:31 +0000
commit719dc7c4369f3e9eb38802d0d3f18dc365fc56cf (patch)
treebaad0c1b61800b2a3894743ec61d528e0a06d9c2 /llvm/tools/llvm-readobj/Error.h
parent4a38b0b493643a5db66bd7c6eaf2a42f1a9f67bd (diff)
downloadbcm5719-llvm-719dc7c4369f3e9eb38802d0d3f18dc365fc56cf.tar.gz
bcm5719-llvm-719dc7c4369f3e9eb38802d0d3f18dc365fc56cf.zip
Remove Elf_Sym_Iter.
It was a fairly broken concept for an ELF only class. An ELF file can have two symbol tables, but they have exactly the same format. There is no concept of a dynamic or a static symbol. Storing this on the iterator also makes us do more work per symbol than necessary. To fetch a name we would: * Find if we had a static or a dynamic symbol. * Look at the corresponding symbol table and find the string table section. * Look at the string table section to fetch its contents. * Compute the name as a substring of the string table. All but the last step can be done per symbol table instead of per symbol. This is a step in that direction. llvm-svn: 240939
Diffstat (limited to 'llvm/tools/llvm-readobj/Error.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud