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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I've also noticed that when doing assembly without setting a --filetype, it still defaults to asm, which doesn't make a lot of sense. There should probably be some input validation to ensure that the various modes (eg --assemble and --disassemble) are run with the correct filetypes and automatically provide sensible defaults, since outputting text assembly by default when trying to assemble text assembly doesn't make a lot of sense. I'm planning on opening another patch to fix this behavior.