[PATCH] D146878: [Docs][llvm-mc] Add documentation on --filetype flag
Aiden Grossman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 25 10:23:42 PDT 2023
aidengrossman created this revision.
Herald added a project: All.
aidengrossman requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D146878
Files:
llvm/docs/CommandGuide/llvm-mc.rst
Index: llvm/docs/CommandGuide/llvm-mc.rst
===================================================================
--- llvm/docs/CommandGuide/llvm-mc.rst
+++ llvm/docs/CommandGuide/llvm-mc.rst
@@ -75,6 +75,13 @@
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146878.508323.patch
Type: text/x-patch
Size: 667 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230325/fc3607bf/attachment.bin>
More information about the llvm-commits
mailing list