llvm.org GIT mirror llvm / c48e5ea
Make a few definitions static. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251759 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 3 years ago
1 changed file(s) with 6 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
8080 clEnumValN(GNU, "gnu", "gnu"),
8181 clEnumValN(BSD, "bsd", "bsd"), clEnumValEnd));
8282
83 std::string Options;
83 static std::string Options;
8484
8585 // Provide additional help output explaining the operations and modifiers of
8686 // llvm-ar. This object instructs the CommandLine library to print the text of
435435 std::exit(1);
436436 }
437437
438 void addMember(std::vector &Members, StringRef FileName,
439 int Pos = -1) {
438 static void addMember(std::vector &Members,
439 StringRef FileName, int Pos = -1) {
440440 NewArchiveIterator NI(FileName);
441441 if (Pos == -1)
442442 Members.push_back(NI);
444444 Members[Pos] = NI;
445445 }
446446
447 void addMember(std::vector &Members,
448 const object::Archive::Child &M, StringRef Name, int Pos = -1) {
447 static void addMember(std::vector &Members,
448 const object::Archive::Child &M, StringRef Name,
449 int Pos = -1) {
449450 if (Thin && !M.getParent()->isThin())
450451 fail("Cannot convert a regular archive to a thin one");
451452 NewArchiveIterator NI(M, Name);