git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251759
91177308-0d34-0410-b5e6-
96231b3b80d8
clEnumValN(GNU, "gnu", "gnu"),
clEnumValN(BSD, "bsd", "bsd"), clEnumValEnd));
clEnumValN(GNU, "gnu", "gnu"),
clEnumValN(BSD, "bsd", "bsd"), clEnumValEnd));
+static std::string Options;
// Provide additional help output explaining the operations and modifiers of
// llvm-ar. This object instructs the CommandLine library to print the text of
// Provide additional help output explaining the operations and modifiers of
// llvm-ar. This object instructs the CommandLine library to print the text of
-void addMember(std::vector<NewArchiveIterator> &Members, StringRef FileName,
- int Pos = -1) {
+static void addMember(std::vector<NewArchiveIterator> &Members,
+ StringRef FileName, int Pos = -1) {
NewArchiveIterator NI(FileName);
if (Pos == -1)
Members.push_back(NI);
NewArchiveIterator NI(FileName);
if (Pos == -1)
Members.push_back(NI);
-void addMember(std::vector<NewArchiveIterator> &Members,
- const object::Archive::Child &M, StringRef Name, int Pos = -1) {
+static void addMember(std::vector<NewArchiveIterator> &Members,
+ const object::Archive::Child &M, StringRef Name,
+ int Pos = -1) {
if (Thin && !M.getParent()->isThin())
fail("Cannot convert a regular archive to a thin one");
NewArchiveIterator NI(M, Name);
if (Thin && !M.getParent()->isThin())
fail("Cannot convert a regular archive to a thin one");
NewArchiveIterator NI(M, Name);