aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorIgor Kudrin <ikudrin@accesssoftek.com>2023-12-20 05:14:57 +0700
committerGitHub <noreply@github.com>2023-12-20 05:14:57 +0700
commit98e20e15ba22e9fed1ff912b8c77645c85aff9ad (patch)
tree5e6fcfb1dcb99e34b0720c1db4b402487401d48d /llvm/lib/Support/CommandLine.cpp
parent8197ea2a08d5e6d72c7579d8cc7c228ae2dbe579 (diff)
downloadllvm-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.cpp3
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;