summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/Symbols.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h
index dfab237b074..c9ee2a00c5a 100644
--- a/lld/ELF/Symbols.h
+++ b/lld/ELF/Symbols.h
@@ -267,8 +267,8 @@ public:
InputFile *fetch();
protected:
- Lazy(Kind K, InputFile *File, StringRef Name, uint8_t Type)
- : Symbol(K, File, Name, llvm::ELF::STB_GLOBAL, llvm::ELF::STV_DEFAULT,
+ Lazy(Kind K, InputFile &File, StringRef Name, uint8_t Type)
+ : Symbol(K, &File, Name, llvm::ELF::STB_GLOBAL, llvm::ELF::STV_DEFAULT,
Type) {}
};
@@ -280,7 +280,7 @@ class LazyArchive : public Lazy {
public:
LazyArchive(InputFile &File, const llvm::object::Archive::Symbol S,
uint8_t Type)
- : Lazy(LazyArchiveKind, &File, S.getName(), Type), Sym(S) {}
+ : Lazy(LazyArchiveKind, File, S.getName(), Type), Sym(S) {}
static bool classof(const Symbol *S) { return S->kind() == LazyArchiveKind; }
@@ -296,7 +296,7 @@ private:
class LazyObject : public Lazy {
public:
LazyObject(InputFile &File, StringRef Name, uint8_t Type)
- : Lazy(LazyObjectKind, &File, Name, Type) {}
+ : Lazy(LazyObjectKind, File, Name, Type) {}
static bool classof(const Symbol *S) { return S->kind() == LazyObjectKind; }
OpenPOWER on IntegriCloud