From eafdc6f2a2a9a137926db4e1c83728b5fdd9a9a7 Mon Sep 17 00:00:00 2001 From: Kevin Enderby Date: Thu, 1 Dec 2016 19:12:55 +0000 Subject: [PATCH] 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 --- test/tools/llvm-size/Inputs/darwin-m1.o | Bin 0 -> 228 bytes test/tools/llvm-size/darwin-m.test | 4 ++++ tools/llvm-size/llvm-size.cpp | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 test/tools/llvm-size/Inputs/darwin-m1.o diff --git a/test/tools/llvm-size/Inputs/darwin-m1.o b/test/tools/llvm-size/Inputs/darwin-m1.o new file mode 100644 index 0000000000000000000000000000000000000000..9672df524c7c3d885c3307cf24f3587fa1655850 GIT binary patch literal 228 zcmX^2>+L@t1_lOBAZCQ(13(%CK>PzB1{S~p6uSe&AetSDnSeA1#K)JUR+K>45Ppbj vL(&Bin)) { if (!checkMachOAndArchFlags(o, file)) return; + MachOObjectFile *MachO = dyn_cast(o); if (OutputFormat == sysv) outs() << o->getFileName() << " :\n"; + else if (MachO && OutputFormat == darwin && MoreThanOneFile) + outs() << o->getFileName() << ":\n"; printObjectSectionSizes(o); if (OutputFormat == berkeley) { - MachOObjectFile *MachO = dyn_cast(o); if (!MachO || MoreThanOneFile) outs() << o->getFileName(); outs() << "\n"; -- 2.50.1