llvm.org GIT mirror llvm / eafdc6f
Fix a bug with llvm-size and the -m option with multiple files not printing the file names. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288402 91177308-0d34-0410-b5e6-96231b3b80d8 Kevin Enderby 3 years ago
3 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
0 RUN: llvm-size -m %p/Inputs/darwin-m.o | FileCheck --check-prefix="DARWIN" %s
1 RUN: llvm-size -m %p/Inputs/darwin-m.o %p/Inputs/darwin-m1.o | FileCheck --check-prefix="DARWIN2" %s
12
23 DARWIN: Segment : 8
34 DARWIN-NEXT: Section (__TEXT, __text): 4
45 DARWIN-NEXT: Section (__DATA, __data): 4
56 DARWIN-NEXT: total 8
67 DARWIN-NEXT: total 8
8
9 DARWIN2: Inputs/darwin-m.o:
10 DARWIN2: Inputs/darwin-m1.o:
816816 } else if (ObjectFile *o = dyn_cast(&Bin)) {
817817 if (!checkMachOAndArchFlags(o, file))
818818 return;
819 MachOObjectFile *MachO = dyn_cast(o);
819820 if (OutputFormat == sysv)
820821 outs() << o->getFileName() << " :\n";
822 else if (MachO && OutputFormat == darwin && MoreThanOneFile)
823 outs() << o->getFileName() << ":\n";
821824 printObjectSectionSizes(o);
822825 if (OutputFormat == berkeley) {
823 MachOObjectFile *MachO = dyn_cast(o);
824826 if (!MachO || MoreThanOneFile)
825827 outs() << o->getFileName();
826828 outs() << "\n";