Rename IgnoredWeak to Ignored.

Thanks to Rui for the suggestion.

llvm-svn: 258189
This commit is contained in:
Rafael Espindola 2016-01-19 21:19:52 +00:00
parent 0a83b1b994
commit 65e80b963a
4 changed files with 8 additions and 9 deletions

View File

@ -120,7 +120,7 @@ SymbolBody *SymbolTable<ELFT>::addSynthetic(StringRef Name,
// file's symbol table. Such symbols are useful for some linker-defined symbols.
template <class ELFT>
SymbolBody *SymbolTable<ELFT>::addIgnored(StringRef Name) {
return addAbsolute(Name, ElfSym<ELFT>::IgnoredWeak);
return addAbsolute(Name, ElfSym<ELFT>::Ignored);
}
// Rename SYM as __wrap_SYM. The original symbol is preserved as __real_SYM.

View File

@ -122,8 +122,8 @@ std::unique_ptr<InputFile> Lazy::getMember() {
template <class ELFT> static void doInitSymbols() {
ElfSym<ELFT>::End.setBinding(STB_GLOBAL);
ElfSym<ELFT>::IgnoredWeak.setBinding(STB_WEAK);
ElfSym<ELFT>::IgnoredWeak.setVisibility(STV_HIDDEN);
ElfSym<ELFT>::Ignored.setBinding(STB_WEAK);
ElfSym<ELFT>::Ignored.setVisibility(STV_HIDDEN);
}
void elf2::initSymbols() {

View File

@ -304,10 +304,9 @@ private:
template <class ELFT> struct ElfSym {
typedef typename llvm::object::ELFFile<ELFT>::Elf_Sym Elf_Sym;
// Used to represent an undefined symbol which we don't want
// to add to the output file's symbol table. The `IgnoredWeak`
// has weak binding and can be substituted.
static Elf_Sym IgnoredWeak;
// Used to represent an undefined symbol which we don't want to add to the
// output file's symbol table. It has weak binding and can be substituted.
static Elf_Sym Ignored;
// The content for _end and end symbols.
static Elf_Sym End;
@ -321,7 +320,7 @@ template <class ELFT> struct ElfSym {
static Elf_Sym RelaIpltEnd;
};
template <class ELFT> typename ElfSym<ELFT>::Elf_Sym ElfSym<ELFT>::IgnoredWeak;
template <class ELFT> typename ElfSym<ELFT>::Elf_Sym ElfSym<ELFT>::Ignored;
template <class ELFT> typename ElfSym<ELFT>::Elf_Sym ElfSym<ELFT>::End;
template <class ELFT> typename ElfSym<ELFT>::Elf_Sym ElfSym<ELFT>::MipsGp;
template <class ELFT>

View File

@ -613,7 +613,7 @@ template <class ELFT> static bool includeInSymtab(const SymbolBody &B) {
// Don't include synthetic symbols like __init_array_start in every output.
if (auto *U = dyn_cast<DefinedRegular<ELFT>>(&B))
if (&U->Sym == &ElfSym<ELFT>::IgnoredWeak)
if (&U->Sym == &ElfSym<ELFT>::Ignored)
return false;
return true;