diff --git a/llvm/tools/llvm-size/llvm-size.cpp b/llvm/tools/llvm-size/llvm-size.cpp --- a/llvm/tools/llvm-size/llvm-size.cpp +++ b/llvm/tools/llvm-size/llvm-size.cpp @@ -508,6 +508,9 @@ fmt << "%7" << (Radix == octal ? PRIo64 : PRIu64) << "\t" << "%7" PRIx64 "\t"; outs() << format(fmt.str().c_str(), total, total); + + if (!MachO && OutputFormat == darwin) + outs() << Obj->getFileName() << "\n"; } }