summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2015-01-16 22:10:36 +0000
committerKevin Enderby <enderby@apple.com>2015-01-16 22:10:36 +0000
commitc1271893af3f5c732b82ce133af8fbeafba2e79c (patch)
treef0983476d1d21fac89da745661bc4a6a0d8640b4 /llvm/lib/Object
parent49b425d9d291275bbd68ef975542e714441b2554 (diff)
downloadbcm5719-llvm-c1271893af3f5c732b82ce133af8fbeafba2e79c.tar.gz
bcm5719-llvm-c1271893af3f5c732b82ce133af8fbeafba2e79c.zip
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
Diffstat (limited to 'llvm/lib/Object')
-rw-r--r--llvm/lib/Object/Archive.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/Archive.cpp b/llvm/lib/Object/Archive.cpp
index f14b29e1622..c8d510f03de 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 {
OpenPOWER on IntegriCloud