mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Make a few definitions static. NFC.
llvm-svn: 251759
This commit is contained in:
parent
38d8e625e7
commit
4411a45b5e
@ -81,7 +81,7 @@ static cl::opt<Format>
|
||||
clEnumValN(GNU, "gnu", "gnu"),
|
||||
clEnumValN(BSD, "bsd", "bsd"), clEnumValEnd));
|
||||
|
||||
std::string Options;
|
||||
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
|
||||
@ -436,8 +436,8 @@ static void performReadOperation(ArchiveOperation Operation,
|
||||
std::exit(1);
|
||||
}
|
||||
|
||||
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);
|
||||
@ -445,8 +445,9 @@ void addMember(std::vector<NewArchiveIterator> &Members, StringRef FileName,
|
||||
Members[Pos] = 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);
|
||||
|
Loading…
Reference in New Issue
Block a user