From 785edea926cfde3c192e2b1b02fe4035ea66eeb8 Mon Sep 17 00:00:00 2001 From: Xing GUO Date: Sat, 17 Nov 2018 08:12:48 +0000 Subject: [llvm-objdump] Print a blank row at the end of sections Summary: When using option `-x` (--all-headers), it will print `Sections`, `Symbol Table`, `Program Header` ... `Sections` and `Symbol Table` will be connected together. Before: ``` Sections: Idx Name Size Address Type 0 00000000 0000000000000000 ... 29 .shstrtab 0000011a 0000000000000000 SYMBOL TABLE: ... ``` After: ``` Sections: Idx Name Size Address Type 0 00000000 0000000000000000 ... 29 .shstrtab 0000011a 0000000000000000 SYMBOL TABLE: ... ``` Reviewers: Higuoxing Reviewed By: Higuoxing Subscribers: llvm-commits, jhenderson Differential Revision: https://reviews.llvm.org/D54665 llvm-svn: 347135 --- llvm/tools/llvm-objdump/llvm-objdump.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp') diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp index d38ffc1a3ce..9a405c6b466 100644 --- a/llvm/tools/llvm-objdump/llvm-objdump.cpp +++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp @@ -1914,6 +1914,7 @@ void llvm::PrintSectionHeaders(const ObjectFile *Obj) { (unsigned)Section.getIndex(), Name.str().c_str(), Size, Address, Type.c_str()); } + outs() << "\n"; } void llvm::PrintSectionContents(const ObjectFile *Obj) { -- cgit v1.2.3