[lldb] [llvm] [mlir] [Support] Remove virtual functions from formatv (PR #207516)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 4 08:48:55 PDT 2026
================
@@ -107,26 +107,26 @@ static llvm::Error FormatImpl(DataStack &data) {
}
using namespace llvm::support::detail;
auto arg = data[data.size() - num_args + r.Index];
- auto format = [&](format_adapter &&adapter) {
+ auto format = [&](FormatFunctorRef &&adapter) {
llvm::FmtAlign Align(adapter, r.Where, r.Width, r.Pad);
Align.format(os, r.Options);
};
if (auto s = std::get_if<std::string>(&arg))
- format(build_format_adapter(s->c_str()));
+ format(FormatFunctor<const char *>(s->c_str()));
----------------
aengelke wrote:
Added a template deduction guide for this.
https://github.com/llvm/llvm-project/pull/207516
More information about the llvm-commits
mailing list