diff options
author | TH3CHARLie <th3charlie@gmail.com> | 2020-01-03 14:04:01 +0800 |
---|---|---|
committer | Jim Lin <tclin914@gmail.com> | 2020-01-03 14:05:55 +0800 |
commit | abd707848bcd52d55e9c203f96a0a826ba56f26f (patch) | |
tree | 813ff94906c81338946ee762868a759d5e57c67b /llvm/tools | |
parent | bd46e29742759dd0d57feb0f33affa9adc7d2fbf (diff) | |
download | bcm5719-llvm-abd707848bcd52d55e9c203f96a0a826ba56f26f.tar.gz bcm5719-llvm-abd707848bcd52d55e9c203f96a0a826ba56f26f.zip |
[llvm-size] print a blank line between archieve members when using sysv format
Summary: This patch is related to https://bugs.llvm.org/show_bug.cgi?id=42967 and it fixes llvm-size's sysv format output by adding a blank line between archieve members
Reviewers: jhenderson, Jim, MaskRay
Reviewed By: jhenderson, Jim, MaskRay
Subscribers: MaskRay, Jim, rupprecht, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D71957
Diffstat (limited to 'llvm/tools')
-rw-r--r-- | llvm/tools/llvm-size/llvm-size.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/tools/llvm-size/llvm-size.cpp b/llvm/tools/llvm-size/llvm-size.cpp index 7c63bc291f1..46ece5a6f0c 100644 --- a/llvm/tools/llvm-size/llvm-size.cpp +++ b/llvm/tools/llvm-size/llvm-size.cpp @@ -446,7 +446,8 @@ static void printObjectSectionSizes(ObjectFile *Obj) { fmt << "%-" << max_name_len << "s " << "%#" << max_size_len << radix_fmt << "\n"; outs() << format(fmt.str().c_str(), static_cast<const char *>("Total"), - total); + total) + << "\n\n"; } else { // The Berkeley format does not display individual section sizes. It // displays the cumulative size for each section type. @@ -839,9 +840,6 @@ static void printFileSectionSizes(StringRef file) { } else { error("unsupported file type", file); } - // System V adds an extra newline at the end of each file. - if (OutputFormat == sysv) - outs() << "\n"; } static void printBerkeleyTotals() { |