Fix the problem with llvm-objdump and -archive-headers in printing the archive header size field.

This problem showed up with the clang-cmake-armv7-a15-full bot.  Thanks to Renato Golin for his help.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226936 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Kevin Enderby 2015-01-23 21:02:44 +00:00
parent 114fb20f6e
commit f9857eb016
2 changed files with 5 additions and 5 deletions

View File

@ -3,8 +3,8 @@ RUN: | FileCheck %s
# Note the date as printed by ctime(3) is time zone dependent and not checked.
CHECK: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture x86_64)
CHECK: -rw-r--r--124/11 {{.*}} __.SYMDEF SORTED
CHECK: -rw-r--r--124/0 {{.*}} hello.o
CHECK: -rw-r--r--124/11 44 {{.*}} __.SYMDEF SORTED
CHECK: -rw-r--r--124/0 860 {{.*}} hello.o
CHECK: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture i386)
CHECK: -rw-r--r--124/11 {{.*}} __.SYMDEF SORTED
CHECK: -rw-r--r--124/0 {{.*}} foo.o
CHECK: -rw-r--r--124/11 60 {{.*}} __.SYMDEF SORTED
CHECK: -rw-r--r--124/0 388 {{.*}} foo.o

View File

@ -749,7 +749,7 @@ static void printArchiveChild(Archive::Child &C, bool verbose,
unsigned GID = C.getGID();
outs() << format("%-3d ", GID);
uint64_t Size = C.getRawSize();
outs() << format("%5d ", Size);
outs() << format("%5" PRId64, Size) << " ";
StringRef RawLastModified = C.getRawLastModified();
if (verbose) {