[llvm-gsymutil] Fix command descriptions introduced in upstream D148775 when switchin...
authorWanyi Ye <wanyi@fb.com>
Thu, 15 Jun 2023 22:18:06 +0000 (15:18 -0700)
committerWanyi Ye <wanyi@fb.com>
Fri, 16 Jun 2023 15:46:44 +0000 (11:46 -0400)
[D148775](https://reviews.llvm.org/D148775) changed the help msg for `--addresses-from-stdin` option when switching to OptTable

This patch also fixed a small problem in the argument type error msg

Test Plan: NFC

Differential Revision: https://reviews.llvm.org/D153086

llvm/tools/llvm-gsymutil/Opts.td
llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp

index 15e468810817590575dfd7a0b3e098c6c190a472..740291479f93232a6ce611c25ce9c610529093f6 100644 (file)
@@ -34,4 +34,4 @@ def quiet : FF<"quiet", "Do not output warnings about the debug information">;
 defm address : Eq<"address", "Lookup an address in a GSYM file">;
 def addresses_from_stdin :
   FF<"addresses-from-stdin",
-     "Emit a section containing remark diagnostics metadata. By default, this is enabled for the following formats: yaml-strtab, bitstream">;
+     "Lookup addresses in a GSYM file that are read from stdin\nEach input line is expected to be of the following format: <addr> <gsym-path>">;
index 68d36f282dec03e365c3fc02bb11ad629af61374..307248ca347876a9167ed6c07a8c620e2d6a791c 100644 (file)
@@ -172,7 +172,7 @@ static void parseArgs(int argc, char **argv) {
   for (const llvm::opt::Arg *A : Args.filtered(OPT_address_EQ)) {
     StringRef S{A->getValue()};
     if (!llvm::to_integer(S, LookupAddresses.emplace_back(), 0)) {
-      llvm::errs() << ToolName << ": for the --segment-size option: '" << S
+      llvm::errs() << ToolName << ": for the --address option: '" << S
                    << "' value invalid for uint argument!\n";
       std::exit(1);
     }