[llvm] r221549 - Remove unused variable.
Rafael Espindola
rafael.espindola at gmail.com
Fri Nov 7 13:33:09 PST 2014
Author: rafael
Date: Fri Nov 7 15:33:09 2014
New Revision: 221549
URL: http://llvm.org/viewvc/llvm-project?rev=221549&view=rev
Log:
Remove unused variable.
Modified:
llvm/trunk/tools/llvm-ar/llvm-ar.cpp
Modified: llvm/trunk/tools/llvm-ar/llvm-ar.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-ar/llvm-ar.cpp?rev=221549&r1=221548&r2=221549&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-ar/llvm-ar.cpp (original)
+++ llvm/trunk/tools/llvm-ar/llvm-ar.cpp Fri Nov 7 15:33:09 2014
@@ -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!");
More information about the llvm-commits
mailing list