Make two helper functions static.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 22 Oct 2014 15:05:51 +0000 (15:05 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 22 Oct 2014 15:05:51 +0000 (15:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220389 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-ar/llvm-ar.cpp

index 6858a94b36bd75d7fe1d376dfe7bf6d05bc5a45c..679b23e9198cf468856be4c8ed44354ce707a72c 100644 (file)
@@ -1016,14 +1016,14 @@ static void runMRIScript() {
   exit(0);
 }
 
-int ar_main(char **argv) {
+static int ar_main(char **argv) {
   // 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();
   return performOperation(Operation, nullptr);
 }
 
-int ranlib_main() {
+static int ranlib_main() {
   if (RestOfArgs.size() != 1)
     fail(ToolName + "takes just one archive as argument");
   ArchiveName = RestOfArgs[0];