Fix the Archive::Child::getRawSize() method used by llvm-objdump’s -archive-headers option

and tweak its use in llvm-objdump.  Add back the test case for the -archive-headers option.

llvm-svn: 226332
This commit is contained in:
Kevin Enderby
2015-01-16 22:10:36 +00:00
parent 49b425d9d2
commit c1271893af
4 changed files with 13 additions and 3 deletions

View File

@@ -111,7 +111,7 @@ uint64_t Archive::Child::getSize() const {
}
uint64_t Archive::Child::getRawSize() const {
return Data.size();
return getHeader()->getSize();
}
Archive::Child Archive::Child::getNext() const {