[Docs][llvm-mc] Add documentation on --filetype flag

Currently the filetype flag is not documented, and knowing the behavior
of this flag is fairly important for doing anything other than
disassembling to text assembly.

Reviewed By: lattner

Differential Revision: https://reviews.llvm.org/D146878
This commit is contained in:
Aiden Grossman 2023-03-25 17:15:01 +00:00
parent 9c6b69000d
commit 7bda9ffb9c

View File

@ -75,6 +75,13 @@ End-user Options
Marked up disassembly of string of hex bytes.
.. option:: --filetype=[asm,null,obj]
Sets the output filetype. Setting this flag to `asm` will make the tool
output text assembly. Setting this flag to `obj` will make the tool output
an object file. Setting it to `null` causes no output to be created and can be
used for timing purposes. The default value is `asm`.
.. option:: -g
Generate DWARF debugging info for assembly source files.