From c08b2669a4fd7de054b8eb70923398e97fab1930 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Wed, 4 Mar 2015 07:28:59 +0000 Subject: [PATCH] Avoid copying parser objects Use of their copy members is deprecated since they have a user-declared dtor. llvm-svn: 231220 --- llvm/include/llvm/Support/CommandLine.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h index 629fa46..5bfb221 100644 --- a/llvm/include/llvm/Support/CommandLine.h +++ b/llvm/include/llvm/Support/CommandLine.h @@ -989,7 +989,7 @@ void printOptionDiff(const Option &O, const generic_parser_base &P, const DT &V, // This is instantiated for basic parsers when the parsed value has a different // type than the option value. e.g. HelpPrinter. template struct OptionDiffPrinter { - void print(const Option &O, const parser P, const ValDT & /*V*/, + void print(const Option &O, const parser &P, const ValDT & /*V*/, const OptionValue & /*Default*/, size_t GlobalWidth) { P.printOptionNoValue(O, GlobalWidth); } @@ -998,7 +998,7 @@ template struct OptionDiffPrinter { // This is instantiated for basic parsers when the parsed value has the same // type as the option value. template struct OptionDiffPrinter { - void print(const Option &O, const parser
P, const DT &V, + void print(const Option &O, const parser
&P, const DT &V, const OptionValue
&Default, size_t GlobalWidth) { P.printOptionDiff(O, V, Default, GlobalWidth); } -- 2.7.4