[PATCH] D54665: [llvm-objdump] Print a blank row at the end of sections

Xing via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 17 00:14:26 PST 2018


Higuoxing created this revision.
Herald added a subscriber: llvm-commits.

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:
    ...


Repository:
  rL LLVM

https://reviews.llvm.org/D54665

Files:
  tools/llvm-objdump/llvm-objdump.cpp


Index: tools/llvm-objdump/llvm-objdump.cpp
===================================================================
--- tools/llvm-objdump/llvm-objdump.cpp
+++ tools/llvm-objdump/llvm-objdump.cpp
@@ -1914,6 +1914,7 @@
                      (unsigned)Section.getIndex(), Name.str().c_str(), Size,
                      Address, Type.c_str());
   }
+  outs() << "\n";
 }
 
 void llvm::PrintSectionContents(const ObjectFile *Obj) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54665.174502.patch
Type: text/x-patch
Size: 424 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181117/bab1a84b/attachment.bin>


More information about the llvm-commits mailing list