[lld] r258189 - Rename IgnoredWeak to Ignored.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 19 13:19:52 PST 2016
Author: rafael
Date: Tue Jan 19 15:19:52 2016
New Revision: 258189
URL: http://llvm.org/viewvc/llvm-project?rev=258189&view=rev
Log:
Rename IgnoredWeak to Ignored.
Thanks to Rui for the suggestion.
Modified:
lld/trunk/ELF/SymbolTable.cpp
lld/trunk/ELF/Symbols.cpp
lld/trunk/ELF/Symbols.h
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/ELF/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolTable.cpp?rev=258189&r1=258188&r2=258189&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolTable.cpp (original)
+++ lld/trunk/ELF/SymbolTable.cpp Tue Jan 19 15:19:52 2016
@@ -120,7 +120,7 @@ SymbolBody *SymbolTable<ELFT>::addSynthe
// 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.
Modified: lld/trunk/ELF/Symbols.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.cpp?rev=258189&r1=258188&r2=258189&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.cpp (original)
+++ lld/trunk/ELF/Symbols.cpp Tue Jan 19 15:19:52 2016
@@ -122,8 +122,8 @@ std::unique_ptr<InputFile> Lazy::getMemb
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() {
Modified: lld/trunk/ELF/Symbols.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.h?rev=258189&r1=258188&r2=258189&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.h (original)
+++ lld/trunk/ELF/Symbols.h Tue Jan 19 15:19:52 2016
@@ -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>
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=258189&r1=258188&r2=258189&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Tue Jan 19 15:19:52 2016
@@ -613,7 +613,7 @@ template <class ELFT> static bool includ
// 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;
More information about the llvm-commits
mailing list