[lld] r363419 - Remove two unused parameters
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 14 09:46:02 PDT 2019
Author: nico
Date: Fri Jun 14 09:46:02 2019
New Revision: 363419
URL: http://llvm.org/viewvc/llvm-project?rev=363419&view=rev
Log:
Remove two unused parameters
Modified:
lld/trunk/ELF/Relocations.cpp
Modified: lld/trunk/ELF/Relocations.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Relocations.cpp?rev=363419&r1=363418&r2=363419&view=diff
==============================================================================
--- lld/trunk/ELF/Relocations.cpp (original)
+++ lld/trunk/ELF/Relocations.cpp Fri Jun 14 09:46:02 2019
@@ -673,8 +673,7 @@ static int64_t computeAddend(const RelTy
// Custom error message if Sym is defined in a discarded section.
template <class ELFT>
-static std::string maybeReportDiscarded(Undefined &Sym, InputSectionBase &Sec,
- uint64_t Offset) {
+static std::string maybeReportDiscarded(Undefined &Sym) {
auto *File = dyn_cast_or_null<ObjFile<ELFT>>(Sym.File);
if (!File || !Sym.DiscardedSecIdx ||
File->getSections()[Sym.DiscardedSecIdx] != &InputSection::Discarded)
@@ -741,8 +740,7 @@ static bool maybeReportUndefined(Symbol
}
};
- std::string Msg =
- maybeReportDiscarded<ELFT>(cast<Undefined>(Sym), Sec, Offset);
+ std::string Msg = maybeReportDiscarded<ELFT>(cast<Undefined>(Sym));
if (Msg.empty())
Msg = "undefined " + Visibility() + "symbol: " + toString(Sym);
More information about the llvm-commits
mailing list