]> granicus.if.org Git - llvm/commit
[llvm-objdump] - Implement -z/--disassemble-zeroes.
authorGeorge Rimar <grimar@accesssoftek.com>
Thu, 10 Jan 2019 14:55:26 +0000 (14:55 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Thu, 10 Jan 2019 14:55:26 +0000 (14:55 +0000)
commit5482030e571f424b4c7068752e4147ff4d132da3
treea95c74eaeaca6c7deb32a34243617c252c31d8cc
parent6abd350ee6960ae02b6a53e0ef9b00cfe917e691
[llvm-objdump] - Implement -z/--disassemble-zeroes.

This is https://bugs.llvm.org/show_bug.cgi?id=37151,

GNU objdump spec says that "Normally the disassembly output will skip blocks of zeroes.",
but currently, llvm-objdump prints them.

The patch implements the -z/--disassemble-zeroes option and switches the default to always
skip blocks of zeroes.

Differential revision: https://reviews.llvm.org/D56083

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350823 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/Mips/micromips-b-range.ll
test/MC/Mips/cpsetup.s
test/MC/Mips/nacl-mask.s
test/MC/X86/disassemble-zeroes.s [new file with mode: 0644]
tools/llvm-objdump/llvm-objdump.cpp