From 9a5263241d40d493445d7f386b4d76be088c3ac1 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 9 Oct 2007 16:04:57 +0000 Subject: [PATCH] Pass argc by value, not by reference, since it isn't modified. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42788 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/CommandLine.h | 2 +- lib/Support/CommandLine.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index 106082cee96..e9c6aaff947 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -40,7 +40,7 @@ namespace cl { //===----------------------------------------------------------------------===// // ParseCommandLineOptions - Command line option processing entry point. // -void ParseCommandLineOptions(int &argc, char **argv, +void ParseCommandLineOptions(int argc, char **argv, const char *Overview = 0); //===----------------------------------------------------------------------===// diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index fc25a633ab3..eed780437bb 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -332,7 +332,7 @@ void cl::ParseEnvironmentOptions(const char *progName, const char *envVar, free (*i); } -void cl::ParseCommandLineOptions(int &argc, char **argv, +void cl::ParseCommandLineOptions(int argc, char **argv, const char *Overview) { // Process all registered options. std::vector PositionalOpts; -- 2.34.1