From 7982d1ea2c5eb2ea2261fd82ebd7eebdda0e58b3 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Thu, 14 Jul 2022 20:58:48 +0200 Subject: Merge llvm-project main llvmorg-15-init-16436-g18a6ab5b8d1f This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-15-init-16436-g18a6ab5b8d1f. PR: 265425 MFC after: 2 weeks (cherry picked from commit 753f127f3ace09432b2baeffd71a308760641a62) --- contrib/llvm-project/llvm/lib/Support/CommandLine.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'contrib/llvm-project/llvm/lib/Support/CommandLine.cpp') diff --git a/contrib/llvm-project/llvm/lib/Support/CommandLine.cpp b/contrib/llvm-project/llvm/lib/Support/CommandLine.cpp index eb6c04d987b3..e3df172ef113 100644 --- a/contrib/llvm-project/llvm/lib/Support/CommandLine.cpp +++ b/contrib/llvm-project/llvm/lib/Support/CommandLine.cpp @@ -1862,8 +1862,10 @@ void basic_parser_impl::printOptionInfo(const Option &O, outs() << " <" << getValueStr(O, ValName) << ">..."; } else if (O.getValueExpectedFlag() == ValueOptional) outs() << "[=<" << getValueStr(O, ValName) << ">]"; - else - outs() << "=<" << getValueStr(O, ValName) << '>'; + else { + outs() << (O.ArgStr.size() == 1 ? " <" : "=<") << getValueStr(O, ValName) + << '>'; + } } Option::printHelpStr(O.HelpStr, GlobalWidth, getOptionWidth(O)); -- cgit v1.2.3