[lld] r248573 - Fix the parent class of SharedSymbol.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 25 08:34:03 PDT 2015
Author: rafael
Date: Fri Sep 25 10:34:03 2015
New Revision: 248573
URL: http://llvm.org/viewvc/llvm-project?rev=248573&view=rev
Log:
Fix the parent class of SharedSymbol.
It is a defined symbol according to classof. Found by inspection.
Modified:
lld/trunk/ELF/Symbols.h
Modified: lld/trunk/ELF/Symbols.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.h?rev=248573&r1=248572&r2=248573&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.h (original)
+++ lld/trunk/ELF/Symbols.h Fri Sep 25 10:34:03 2015
@@ -232,7 +232,7 @@ public:
template <class ELFT>
typename Undefined<ELFT>::Elf_Sym Undefined<ELFT>::Synthetic;
-template <class ELFT> class SharedSymbol : public ELFSymbolBody<ELFT> {
+template <class ELFT> class SharedSymbol : public Defined<ELFT> {
typedef ELFSymbolBody<ELFT> Base;
typedef typename Base::Elf_Sym Elf_Sym;
@@ -242,7 +242,7 @@ public:
}
SharedSymbol(StringRef Name, const Elf_Sym &Sym)
- : ELFSymbolBody<ELFT>(Base::SharedKind, Name, Sym) {}
+ : Defined<ELFT>(Base::SharedKind, Name, Sym) {}
};
// This class represents a symbol defined in an archive file. It is
More information about the llvm-commits
mailing list