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
This commit is contained in:
Dan Gohman 2007-10-09 16:04:57 +00:00
parent 6d60cac029
commit 9a5263241d
2 changed files with 2 additions and 2 deletions

View 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);
//===----------------------------------------------------------------------===//

View 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;