Redefine isGnuIfunc as a member function of SymbolBody.
llvm-svn: 263365
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 81d8c04..9e063da 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -366,7 +366,7 @@
// An STT_GNU_IFUNC symbol always uses a PLT entry, and all references
// to the symbol go through the PLT. This is true even for a local
// symbol, although local symbols normally do not require PLT entries.
- if (isGnuIFunc<ELFT>(Body)) {
+ if (Body.isGnuIfunc<ELFT>()) {
if (Body.isInPlt())
continue;
Out<ELFT>::Plt->addEntry(Body);