Remove unused variable.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 7 Nov 2014 21:33:09 +0000 (21:33 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 7 Nov 2014 21:33:09 +0000 (21:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221549 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-ar/llvm-ar.cpp

index 679b23e9198cf468856be4c8ed44354ce707a72c..8ee66f6a692a754bcaa1eeb1e2875213361c38e0 100644 (file)
@@ -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!");