[llvm] r220389 - Make two helper functions static.
Rafael Espindola
rafael.espindola at gmail.com
Wed Oct 22 08:05:51 PDT 2014
Author: rafael
Date: Wed Oct 22 10:05:51 2014
New Revision: 220389
URL: http://llvm.org/viewvc/llvm-project?rev=220389&view=rev
Log:
Make two helper functions static.
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=220389&r1=220388&r2=220389&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-ar/llvm-ar.cpp (original)
+++ llvm/trunk/tools/llvm-ar/llvm-ar.cpp Wed Oct 22 10:05:51 2014
@@ -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];
More information about the llvm-commits
mailing list