From d5fc2ad2f5958eb5b7c91470c58dd946197872d5 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 22 Oct 2014 15:05:51 +0000 Subject: [PATCH] Make two helper functions static. llvm-svn: 220389 --- tools/llvm-ar/llvm-ar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/llvm-ar/llvm-ar.cpp b/tools/llvm-ar/llvm-ar.cpp index 6858a94b36b..679b23e9198 100644 --- a/tools/llvm-ar/llvm-ar.cpp +++ b/tools/llvm-ar/llvm-ar.cpp @@ -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];