From baec437f54765e82b693fe924588db488ef16521 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Fri, 4 Sep 2015 20:43:00 +0000 Subject: [llvm-readobj] MachO: dump the correct field. This was found while converting a test from macho-dump to llvm-readobj and will once I commit the converted test. llvm-svn: 246868 --- llvm/tools/llvm-readobj/MachODumper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/tools/llvm-readobj') diff --git a/llvm/tools/llvm-readobj/MachODumper.cpp b/llvm/tools/llvm-readobj/MachODumper.cpp index 80c45dee3cc..fd6e00b9e83 100644 --- a/llvm/tools/llvm-readobj/MachODumper.cpp +++ b/llvm/tools/llvm-readobj/MachODumper.cpp @@ -767,7 +767,7 @@ void MachODumper::printMachOSegment() { W.printHex("vmaddr", MOSegment.vmaddr); W.printHex("vmsize", MOSegment.vmsize); W.printNumber("fileoff", MOSegment.fileoff); - W.printNumber("filesize", MOSegment.fileoff); + W.printNumber("filesize", MOSegment.filesize); W.printString("maxprot", getMask(MOSegment.maxprot)); W.printString("initprot", getMask(MOSegment.initprot)); W.printNumber("nsects", MOSegment.nsects); -- cgit v1.2.3