From 7bda9ffb9cf021a256beac64de46bbd99203eaf9 Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Sat, 25 Mar 2023 17:15:01 +0000 Subject: [PATCH] [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 --- llvm/docs/CommandGuide/llvm-mc.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/llvm/docs/CommandGuide/llvm-mc.rst b/llvm/docs/CommandGuide/llvm-mc.rst index b7a40a19c67f..378b6638bf81 100644 --- a/llvm/docs/CommandGuide/llvm-mc.rst +++ b/llvm/docs/CommandGuide/llvm-mc.rst @@ -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.