From cdd5f6d41a3ef68a5dccc98b0f8fe3b6c85ea49c Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Fri, 4 Sep 2015 20:43:00 +0000 Subject: [PATCH] [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246868 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-readobj/MachODumper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/llvm-readobj/MachODumper.cpp b/tools/llvm-readobj/MachODumper.cpp index 80c45dee3cc..fd6e00b9e83 100644 --- a/tools/llvm-readobj/MachODumper.cpp +++ b/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); -- 2.34.1