Pass argc by value, not by reference, since it isn't modified.
authorDan Gohman <gohman@apple.com>
Tue, 9 Oct 2007 16:04:57 +0000 (16:04 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 9 Oct 2007 16:04:57 +0000 (16:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42788 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/CommandLine.h
lib/Support/CommandLine.cpp

index 106082cee96d6d79c630545ecac7a8a2cd4c64d7..e9c6aaff947d2fc992147f83011c2eee2e4180e1 100644 (file)
@@ -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);
 
 //===----------------------------------------------------------------------===//
index fc25a633ab3c43943bbb075159cb9cc662edf448..eed780437bb0b97416c42eb59e0c9990c1534a6d 100644 (file)
@@ -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<Option*> PositionalOpts;