File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
RUN: llvm-size -m %p/Inputs/darwin-m.o | FileCheck --check-prefix="DARWIN" %s
2
+ RUN: llvm-size -m %p/Inputs/darwin-m.o %p/Inputs/darwin-m1.o | FileCheck --check-prefix="DARWIN2" %s
2
3
3
4
DARWIN: Segment : 8
4
5
DARWIN-NEXT: Section (__TEXT, __text): 4
5
6
DARWIN-NEXT: Section (__DATA, __data): 4
6
7
DARWIN-NEXT: total 8
7
8
DARWIN-NEXT: total 8
9
+
10
+ DARWIN2: Inputs/darwin-m.o:
11
+ DARWIN2: Inputs/darwin-m1.o:
Original file line number Diff line number Diff line change @@ -817,11 +817,13 @@ static void printFileSectionSizes(StringRef file) {
817
817
} else if (ObjectFile *o = dyn_cast<ObjectFile>(&Bin)) {
818
818
if (!checkMachOAndArchFlags (o, file))
819
819
return ;
820
+ MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o);
820
821
if (OutputFormat == sysv)
821
822
outs () << o->getFileName () << " :\n " ;
823
+ else if (MachO && OutputFormat == darwin && MoreThanOneFile)
824
+ outs () << o->getFileName () << " :\n " ;
822
825
printObjectSectionSizes (o);
823
826
if (OutputFormat == berkeley) {
824
- MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o);
825
827
if (!MachO || MoreThanOneFile)
826
828
outs () << o->getFileName ();
827
829
outs () << " \n " ;
You can’t perform that action at this time.
0 commit comments