Allow llvm-dis to disassemble multiple files
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Can you add a test? Should -o be considered incompatible with multiple files?
llvm/tools/llvm-dis/llvm-dis.cpp | ||
---|---|---|
214 | The idea with OF_TextWithCRLF is that there needs to be \r\n for Windows. |
Comment Actions
Sure, I can add one. What would OutputFilename mean in this context? A prefix for all output files?
llvm/tools/llvm-dis/llvm-dis.cpp | ||
---|---|---|
214 | Will fix. |
llvm/test/tools/llvm-dis/multiple-files.ll | ||
---|---|---|
2 ↗ | (On Diff #340146) | cp |
4 ↗ | (On Diff #340146) | Delete llvm-dis < %t0. It's not this file's purpose to test single file. |
9 ↗ | (On Diff #340146) | make sure the prefix error: and filename (if exists) is in the diagnostic. |
llvm/tools/llvm-dis/llvm-dis.cpp | ||
161 | !OutputFilename.empty() |
!OutputFilename.empty()