ELF2: Rename undefError -> reportUndefined.
The new name starts with a verb, and it does not imply that it errors out and exit (it acutally can just emit a warning depending on settings.) llvm-svn: 249016
This commit is contained in:
parent
cf1670a095
commit
44f5d91af9
|
@ -267,7 +267,7 @@ void Writer<ELFT>::scanRelocs(const InputSection<ELFT> &C) {
|
|||
}
|
||||
|
||||
template <class ELFT>
|
||||
static void undefError(const SymbolTable &S, const SymbolBody &Sym) {
|
||||
static void reportUndefined(const SymbolTable &S, const SymbolBody &Sym) {
|
||||
typedef typename ELFFile<ELFT>::Elf_Sym Elf_Sym;
|
||||
typedef typename ELFFile<ELFT>::Elf_Sym_Range Elf_Sym_Range;
|
||||
|
||||
|
@ -337,7 +337,7 @@ template <class ELFT> void Writer<ELFT>::createSections() {
|
|||
StringRef Name = P.first;
|
||||
SymbolBody *Body = P.second->Body;
|
||||
if (Body->isStrongUndefined())
|
||||
undefError<ELFT>(Symtab, *Body);
|
||||
reportUndefined<ELFT>(Symtab, *Body);
|
||||
|
||||
if (auto *C = dyn_cast<DefinedCommon<ELFT>>(Body))
|
||||
CommonSymbols.push_back(C);
|
||||
|
|
Loading…
Reference in New Issue