summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CommandLine.cpp
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 /llvm/lib/Support/CommandLine.cpp
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
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r--llvm/lib/Support/CommandLine.cpp2
1 files changed, 1 insertions, 1 deletions
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