diff options
author | Igor Kudrin <ikudrin@accesssoftek.com> | 2023-12-20 05:14:57 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-20 05:14:57 +0700 |
commit | 98e20e15ba22e9fed1ff912b8c77645c85aff9ad (patch) | |
tree | 5e6fcfb1dcb99e34b0720c1db4b402487401d48d /llvm/lib/Support/CommandLine.cpp | |
parent | 8197ea2a08d5e6d72c7579d8cc7c228ae2dbe579 (diff) | |
download | llvm-98e20e15ba22e9fed1ff912b8c77645c85aff9ad.zip llvm-98e20e15ba22e9fed1ff912b8c77645c85aff9ad.tar.gz llvm-98e20e15ba22e9fed1ff912b8c77645c85aff9ad.tar.bz2 |
[CommandLine][NFC] Replace 'std::function' with 'function_ref' (#75973)
This implements a post-commit suggestion for #75679.
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r-- | llvm/lib/Support/CommandLine.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index 00179bc..368dead 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -175,8 +175,7 @@ public: StringRef Overview, raw_ostream *Errs = nullptr, bool LongOptionsUseDoubleDash = false); - void forEachSubCommand(Option &Opt, - std::function<void(SubCommand &)> Action) { + void forEachSubCommand(Option &Opt, function_ref<void(SubCommand &)> Action) { if (Opt.Subs.empty()) { Action(SubCommand::getTopLevel()); return; |