diff options
author | Mehdi Amini <joker.eph@gmail.com> | 2021-06-16 23:41:23 +0000 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2021-06-16 23:41:50 +0000 |
commit | c8a3f561ebfd6a5fd6c3efb65944760c7a1a446f (patch) | |
tree | 7ce71dc063511cbdb38cac3963ed63cd7b9a295f /lldb/source/Commands/CommandObjectGUI.cpp | |
parent | fc4f457fcc531871e86ecaaffc46ef98249b8e6a (diff) | |
download | llvm-c8a3f561ebfd6a5fd6c3efb65944760c7a1a446f.zip llvm-c8a3f561ebfd6a5fd6c3efb65944760c7a1a446f.tar.gz llvm-c8a3f561ebfd6a5fd6c3efb65944760c7a1a446f.tar.bz2 |
Decouple registring passes from specifying argument/description
This patch changes the (not recommended) static registration API from:
static PassRegistration<MyPass> reg("my-pass", "My Pass Description.");
to:
static PassRegistration<MyPass> reg;
And the explicit registration from:
void registerPass("my-pass", "My Pass Description.",
[] { return createMyPass(); });
To:
void registerPass([] { return createMyPass(); });
It is expected that Pass implementations overrides the getArgument() method
instead. This will ensure that pipeline description can be printed and parsed
back.
Differential Revision: https://reviews.llvm.org/D104421
Diffstat (limited to 'lldb/source/Commands/CommandObjectGUI.cpp')
0 files changed, 0 insertions, 0 deletions