aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectGUI.cpp
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2021-06-16 23:41:23 +0000
committerMehdi Amini <joker.eph@gmail.com>2021-06-16 23:41:50 +0000
commitc8a3f561ebfd6a5fd6c3efb65944760c7a1a446f (patch)
tree7ce71dc063511cbdb38cac3963ed63cd7b9a295f /lldb/source/Commands/CommandObjectGUI.cpp
parentfc4f457fcc531871e86ecaaffc46ef98249b8e6a (diff)
downloadllvm-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