aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2021-01-25 08:41:41 +0100
committerJan Svoboda <jan_svoboda@apple.com>2021-01-25 09:15:33 +0100
commit46ec0254a97dcf35a0f9f023ea7632e7ee72a1ee (patch)
tree692eaabc4e58c339bac7bf0ef55ab6d8793f0971 /llvm/lib/CodeGen/MachineInstr.cpp
parent8fbc1437c605fe92c0fa286757e3b287d6b02f05 (diff)
downloadllvm-46ec0254a97dcf35a0f9f023ea7632e7ee72a1ee.zip
llvm-46ec0254a97dcf35a0f9f023ea7632e7ee72a1ee.tar.gz
llvm-46ec0254a97dcf35a0f9f023ea7632e7ee72a1ee.tar.bz2
[clang][cli] NFC: Move prefix to the front of BoolOption
The prefix used to be the last (optional) argument to BoolOption. This decision was made with the expectation that only few command line options would need to pass it explicitly instead of using Bool{F,G}Option. It turns out that a considerable number of options don't conform to Bool{F,G}Option and need to provide the prefix anyways. This sometimes requires to explicitly pass `BothFlags<[]>`. This patch makes prefix the first parameter, so it now directly precedes the spelling base string. Now 8 options dropped `BothFlags<[]>` and only two options (`pthread` and `emit_llvm_uselists`) need to pass an empty prefix. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D95221
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions