diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 36259342de4ae..1d602a066bf07 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -267,7 +267,7 @@ void Writer::scanRelocs(const InputSection &C) { } template -static void undefError(const SymbolTable &S, const SymbolBody &Sym) { +static void reportUndefined(const SymbolTable &S, const SymbolBody &Sym) { typedef typename ELFFile::Elf_Sym Elf_Sym; typedef typename ELFFile::Elf_Sym_Range Elf_Sym_Range; @@ -337,7 +337,7 @@ template void Writer::createSections() { StringRef Name = P.first; SymbolBody *Body = P.second->Body; if (Body->isStrongUndefined()) - undefError(Symtab, *Body); + reportUndefined(Symtab, *Body); if (auto *C = dyn_cast>(Body)) CommonSymbols.push_back(C);