summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-10-09 16:04:57 +0000
committerDan Gohman <gohman@apple.com>2007-10-09 16:04:57 +0000
commit66966403ce5282ee85ad1b6fb215e12e89dd791c (patch)
tree402ef94c39b6e19a420f0dc6fccfe2ca96430f83
parente8c8ef523410ee20c6970c6d2b13c643f66a1e99 (diff)
downloadbcm5719-llvm-66966403ce5282ee85ad1b6fb215e12e89dd791c.tar.gz
bcm5719-llvm-66966403ce5282ee85ad1b6fb215e12e89dd791c.zip
Pass argc by value, not by reference, since it isn't modified.
llvm-svn: 42788
-rw-r--r--llvm/include/llvm/Support/CommandLine.h2
-rw-r--r--llvm/lib/Support/CommandLine.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h
index 106082cee96..e9c6aaff947 100644
--- a/llvm/include/llvm/Support/CommandLine.h
+++ b/llvm/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/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index fc25a633ab3..eed780437bb 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/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<Option*> PositionalOpts;
OpenPOWER on IntegriCloud