diff options
Diffstat (limited to 'lld/ELF/Symbols.h')
-rw-r--r-- | lld/ELF/Symbols.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h index f4bb245f955..fda9e6d6892 100644 --- a/lld/ELF/Symbols.h +++ b/lld/ELF/Symbols.h @@ -208,10 +208,10 @@ class SharedSymbol : public Symbol { public: static bool classof(const Symbol *S) { return S->kind() == SharedKind; } - SharedSymbol(InputFile *File, StringRef Name, uint8_t Binding, + SharedSymbol(InputFile &File, StringRef Name, uint8_t Binding, uint8_t StOther, uint8_t Type, uint64_t Value, uint64_t Size, uint32_t Alignment, uint32_t VerdefIndex) - : Symbol(SharedKind, File, Name, Binding, StOther, Type), Value(Value), + : Symbol(SharedKind, &File, Name, Binding, StOther, Type), Value(Value), Size(Size), VerdefIndex(VerdefIndex), Alignment(Alignment) { // GNU ifunc is a mechanism to allow user-supplied functions to // resolve PLT slot values at load-time. This is contrary to the @@ -233,8 +233,8 @@ public: this->Type = llvm::ELF::STT_FUNC; } - template <class ELFT> SharedFile<ELFT> *getFile() const { - return cast<SharedFile<ELFT>>(File); + template <class ELFT> SharedFile<ELFT> &getFile() const { + return *cast<SharedFile<ELFT>>(File); } // If not null, there is a copy relocation to this section. |