Clean up the 'trap' instruction printing a bit. Non-Darwin assemblers don't
authorJim Grosbach <grosbach@apple.com>
Thu, 23 Sep 2010 18:05:37 +0000 (18:05 +0000)
committerJim Grosbach <grosbach@apple.com>
Thu, 23 Sep 2010 18:05:37 +0000 (18:05 +0000)
commit2e6ae13bf6e09d844b76b0a12861d25be0842b03
tree8376c32a8f628ccb872faaca032a618423b72f79
parenta5c6b78bf8a009609258ed6c11ac4580ad6426f5
Clean up the 'trap' instruction printing a bit. Non-Darwin assemblers don't
(yet) recognize the 'trap' mnemonic, so we use .short/.long to emit the
opcode directly. On Darwin, however, we do want the mnemonic for more
readable assembly code and better disassembly.

Adjust the .td file to use the 'trap' mnemonic and handle using the binutils
workaround in the assembly printer. Also tweak the formatting of the opcode
values to make them consistent between the MC printer and the old printer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114679 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMAsmPrinter.cpp
lib/Target/ARM/ARMInstrInfo.td
lib/Target/ARM/ARMInstrThumb.td