diff options
author | Fangrui Song <maskray@google.com> | 2019-05-01 10:40:48 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-05-01 10:40:48 +0000 |
commit | 5387c2cd17b2fb63df81298527614795ffc0abbb (patch) | |
tree | 3d5d6a573b746e8b1ff83ffc8a724851d33bdc05 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | a7d107a3e07e805ccf96306e4059f97de0f92eaa (diff) | |
download | llvm-5387c2cd17b2fb63df81298527614795ffc0abbb.zip llvm-5387c2cd17b2fb63df81298527614795ffc0abbb.tar.gz llvm-5387c2cd17b2fb63df81298527614795ffc0abbb.tar.bz2 |
[llvm-objdump] Print newlines before and after "Disassembly of section ...:"
This improves readability and the behavior is consistent with GNU objdump.
The new test test/tools/llvm-objdump/X86/disassemble-section-name.s
checks we print newlines before and after "Disassembly of section ...:"
Differential Revision: https://reviews.llvm.org/D61127
llvm-svn: 359668
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
-rw-r--r-- | llvm/tools/llvm-objdump/llvm-objdump.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp index 8a3d6d7..77307bf 100644 --- a/llvm/tools/llvm-objdump/llvm-objdump.cpp +++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp @@ -1164,10 +1164,10 @@ static void disassembleObject(const Target *TheTarget, const ObjectFile *Obj, if (!PrintedSection) { PrintedSection = true; - outs() << "Disassembly of section "; + outs() << "\nDisassembly of section "; if (!SegmentName.empty()) outs() << SegmentName << ","; - outs() << SectionName << ':'; + outs() << SectionName << ":\n"; } if (Obj->isELF() && Obj->getArch() == Triple::amdgcn) { |