Don't iterate over the program headers in the constructor of ELFFile.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 21 Jul 2015 20:50:53 +0000 (20:50 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 21 Jul 2015 20:50:53 +0000 (20:50 +0000)
commitc22eb2bea61c3099eab67d2f32771fc7112992cd
treef58a7e3809dd2a9142101abd5252d181138d6fe9
parent85223309d767e32571fe852f6b97d2183c2b4319
Don't iterate over the program headers in the constructor of ELFFile.

Not every program needs this information.

In particular, it is necessary and sufficient for a static linker to scan the
section table.

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