summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Support/CommandLine.h
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-03-04 07:28:59 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-03-04 07:28:59 +0000
commitc08b2669a4fd7de054b8eb70923398e97fab1930 (patch)
tree4844f9c7fe8c4446e77ba47edb4e5975756dd9a4 /llvm/include/llvm/Support/CommandLine.h
parentfb95697c88d748773457a0656a0755850d3ac945 (diff)
downloadbcm5719-llvm-c08b2669a4fd7de054b8eb70923398e97fab1930.tar.gz
bcm5719-llvm-c08b2669a4fd7de054b8eb70923398e97fab1930.zip
Avoid copying parser objects
Use of their copy members is deprecated since they have a user-declared dtor. llvm-svn: 231220
Diffstat (limited to 'llvm/include/llvm/Support/CommandLine.h')
-rw-r--r--llvm/include/llvm/Support/CommandLine.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h
index 629fa46fac8..5bfb221d8fb 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 <class ParserDT, class ValDT> struct OptionDiffPrinter {
- void print(const Option &O, const parser<ParserDT> P, const ValDT & /*V*/,
+ void print(const Option &O, const parser<ParserDT> &P, const ValDT & /*V*/,
const OptionValue<ValDT> & /*Default*/, size_t GlobalWidth) {
P.printOptionNoValue(O, GlobalWidth);
}
@@ -998,7 +998,7 @@ template <class ParserDT, class ValDT> struct OptionDiffPrinter {
// This is instantiated for basic parsers when the parsed value has the same
// type as the option value.
template <class DT> struct OptionDiffPrinter<DT, DT> {
- void print(const Option &O, const parser<DT> P, const DT &V,
+ void print(const Option &O, const parser<DT> &P, const DT &V,
const OptionValue<DT> &Default, size_t GlobalWidth) {
P.printOptionDiff(O, V, Default, GlobalWidth);
}
OpenPOWER on IntegriCloud