[lld] r321199 - Pass a InputFile reference to the Lazy constructor. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 20 10:01:33 PST 2017
Author: rafael
Date: Wed Dec 20 10:01:32 2017
New Revision: 321199
URL: http://llvm.org/viewvc/llvm-project?rev=321199&view=rev
Log:
Pass a InputFile reference to the Lazy constructor. NFC.
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=321199&r1=321198&r2=321199&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.h (original)
+++ lld/trunk/ELF/Symbols.h Wed Dec 20 10:01:32 2017
@@ -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; }
More information about the llvm-commits
mailing list