Compute the size of an archive member in the constructor.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 9 Jul 2013 05:26:25 +0000 (05:26 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 9 Jul 2013 05:26:25 +0000 (05:26 +0000)
commitbe6b9101d412711b69f6cfc1068efdf0ba7eb586
treea503230c20c9fcdd86f4f73bad9afd580ced7ae0
parent3d84b07f9581408d8ee9262744afd8ab02ff1821
Compute the size of an archive member in the constructor.

It is always computed the same way (by parsing the header). Doing it in the
constructor simplifies the callers a bit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185905 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/Archive.h
lib/Object/Archive.cpp