From c1271893af3f5c732b82ce133af8fbeafba2e79c Mon Sep 17 00:00:00 2001 From: Kevin Enderby Date: Fri, 16 Jan 2015 22:10:36 +0000 Subject: =?UTF-8?q?Fix=20the=20Archive::Child::getRawSize()=20method=20use?= =?UTF-8?q?d=20by=20llvm-objdump=E2=80=99s=20-archive-headers=20option=20a?= =?UTF-8?q?nd=20tweak=20its=20use=20in=20llvm-objdump.=20=20Add=20back=20t?= =?UTF-8?q?he=20test=20case=20for=20the=20-archive-headers=20option.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit llvm-svn: 226332 --- llvm/lib/Object/Archive.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Object/Archive.cpp') diff --git a/llvm/lib/Object/Archive.cpp b/llvm/lib/Object/Archive.cpp index f14b29e..c8d510f 100644 --- a/llvm/lib/Object/Archive.cpp +++ b/llvm/lib/Object/Archive.cpp @@ -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 { -- cgit v1.1