From 44f5d91af9eea0dbc33ffa285170a29ab44aa796 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 1 Oct 2015 14:46:54 +0000 Subject: [PATCH] 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 --- lld/ELF/Writer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);