Remove two unused parameters

llvm-svn: 363419
This commit is contained in:
Nico Weber 2019-06-14 16:46:02 +00:00
parent ffeb01c113
commit 96a15796fb
1 changed files with 2 additions and 4 deletions

View File

@ -673,8 +673,7 @@ static int64_t computeAddend(const RelTy &Rel, const RelTy *End,
// 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 &Sym, InputSectionBase &Sec,
}
};
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);