Don't iterate over all sections in the ELFFile constructor.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 10 Aug 2015 21:29:35 +0000 (21:29 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 10 Aug 2015 21:29:35 +0000 (21:29 +0000)
commit0d34e64f73e9a9588bf7260c3ed3671f30e3e7ce
treefb071b789f2775bdad781bd3e2d079b70f042cb8
parentac7345f4c1294450c9293cb8936160e7caca46e1
Don't iterate over all sections in the ELFFile constructor.

With this we finally have an ELFFile that is O(1) to construct. This is helpful
for programs like lld which have to do their own section walk.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244510 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ELF.h
include/llvm/Object/ELFObjectFile.h
tools/llvm-readobj/ARMEHABIPrinter.h
tools/llvm-readobj/ELFDumper.cpp
tools/obj2yaml/elf2yaml.cpp