From: Dan Gohman Date: Tue, 9 Oct 2007 16:04:57 +0000 (+0000) Subject: Pass argc by value, not by reference, since it isn't modified. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=9a5263241d40d493445d7f386b4d76be088c3ac1;p=oota-llvm.git 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 --- 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;