From 50b7df4325a0a5703aab80a3f265d4e3b45a5f28 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 1 Jul 2021 19:43:49 -0700 Subject: [PATCH] [llvm-symbolizer] Move setGroupedShortOptions and don't ignore case setGroupedShortOptions in the ctor seems more popular. --- tools/llvm-symbolizer/llvm-symbolizer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/llvm-symbolizer/llvm-symbolizer.cpp b/tools/llvm-symbolizer/llvm-symbolizer.cpp index 2359e5d2b45..227ce12a6d9 100644 --- a/tools/llvm-symbolizer/llvm-symbolizer.cpp +++ b/tools/llvm-symbolizer/llvm-symbolizer.cpp @@ -66,7 +66,9 @@ static const opt::OptTable::Info InfoTable[] = { class SymbolizerOptTable : public opt::OptTable { public: - SymbolizerOptTable() : OptTable(InfoTable, true) {} + SymbolizerOptTable() : OptTable(InfoTable) { + setGroupedShortOptions(true); + } }; } // namespace @@ -206,7 +208,6 @@ static opt::InputArgList parseOptions(int Argc, char *Argv[], bool IsAddr2Line, StringSaver &Saver, SymbolizerOptTable &Tbl) { StringRef ToolName = IsAddr2Line ? "llvm-addr2line" : "llvm-symbolizer"; - Tbl.setGroupedShortOptions(true); // The environment variable specifies initial options which can be overridden // by commnad line options. Tbl.setInitialOptionsFromEnvironment(IsAddr2Line ? "LLVM_ADDR2LINE_OPTS"