Don't store a Child to the first regular member.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 31 Oct 2015 21:44:42 +0000 (21:44 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 31 Oct 2015 21:44:42 +0000 (21:44 +0000)
commitd3ca239fe8ccc6b1188d61130b887ebdc94f8059
treee1e2866993690d0864ecd9d79d9187a4d0922c4f
parent05a69d8e6c6bf8068f0d4ebb4cf2fd5ccdbdab54
Don't store a Child to the first regular member.

This is a bit ugly, but has a few advantages:
* Archive is now easy to copy since there is no Archive -> Child -> Archive
  loop.
* It makes it clear that we already checked for errors when finding the Child
  data.

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