summaryrefslogtreecommitdiff
path: root/tools/llvm-ar
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-11-07 21:33:09 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-11-07 21:33:09 +0000
commit3fc63a67f2c6c23a957a5316e40d58e6c983b16a (patch)
treeaa6d009cd0e94cd4badecf7d075668bacc5d74e4 /tools/llvm-ar
parent35c163020a7dbb90502ff6f9fdb8458744508936 (diff)
Remove unused variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221549 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ar')
-rw-r--r--tools/llvm-ar/llvm-ar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm-ar/llvm-ar.cpp b/tools/llvm-ar/llvm-ar.cpp
index 679b23e9198..8ee66f6a692 100644
--- a/tools/llvm-ar/llvm-ar.cpp
+++ b/tools/llvm-ar/llvm-ar.cpp
@@ -1016,7 +1016,7 @@ static void runMRIScript() {
exit(0);
}
-static int ar_main(char **argv) {
+static int ar_main() {
// Do our own parsing of the command line because the CommandLine utility
// can't handle the grouped positional parameters without a dash.
ArchiveOperation Operation = parseCommandLine();
@@ -1050,7 +1050,7 @@ int main(int argc, char **argv) {
StringRef Stem = sys::path::stem(ToolName);
if (Stem.find("ar") != StringRef::npos)
- return ar_main(argv);
+ return ar_main();
if (Stem.find("ranlib") != StringRef::npos)
return ranlib_main();
fail("Not ranlib or ar!");