Use getChildOffset instead of getBuffer for identifying a member.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 14 Jul 2015 21:28:07 +0000 (21:28 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 14 Jul 2015 21:28:07 +0000 (21:28 +0000)
commit9f141efc57812d3629082afc5520b182e38567e3
tree00c4a71da18f4c61863e05fd111e4fa8cb9cc25b
parent9fab370d79eb8c09bff29a8c0744060a15d63607
Use getChildOffset instead of getBuffer for identifying a member.

I am adding support for thin archives. On those, getting the buffer
involves reading another file.

Since we only need an id in here, use the member offset in the archive.

llvm-svn: 242205
lld/COFF/InputFiles.cpp
lld/COFF/InputFiles.h