[PATCH] D18251: Modify llvm-objdump to print disassembly failures inline

Colin LeMahieu via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 17 12:49:43 PDT 2016


colinl created this revision.
colinl added reviewers: davide, sidneym, shankare.
colinl added a subscriber: llvm-commits.
colinl set the repository for this revision to rL LLVM.

Two major problems exist with the current way failed disassembly is printed.  Warnings are printed to stderr which is not synchronized with stdout, leading to confusing output and if someone is trying to pipe output to a file, warnings are still printed out to the command line.

This patch prints the text "<unknown>" where the instruction text would have been, had disassembly succeeded.

Repository:
  rL LLVM

http://reviews.llvm.org/D18251

Files:
  test/MC/X86/invalid_opcode.s
  tools/llvm-objdump/llvm-objdump.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18251.50967.patch
Type: text/x-patch
Size: 7647 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160317/c05814f5/attachment.bin>


More information about the llvm-commits mailing list