diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-10-13 01:17:02 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-10-13 01:17:02 +0000 |
| commit | 2a4b27111dc79e65f15d9f7bb86a3cbb2caec3d3 (patch) | |
| tree | ff8d2684f1af7de350f0d532ccbd635b0a21a258 /lld/ELF/InputFiles.cpp | |
| parent | e5d9515fb71bc6655cfbb2ef8ce000891aade2b1 (diff) | |
| download | bcm5719-llvm-2a4b27111dc79e65f15d9f7bb86a3cbb2caec3d3.tar.gz bcm5719-llvm-2a4b27111dc79e65f15d9f7bb86a3cbb2caec3d3.zip | |
Remove the EKind member variable.
Now that the base class is templated, it is redundant with the type.
llvm-svn: 250139
Diffstat (limited to 'lld/ELF/InputFiles.cpp')
| -rw-r--r-- | lld/ELF/InputFiles.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index 009fe417908..5e01bc08659 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -32,8 +32,8 @@ public: } template <class ELFT> -ELFFileBase<ELFT>::ELFFileBase(Kind K, ELFKind EKind, MemoryBufferRef M) - : InputFile(K, M), EKind(EKind), ELFObj(MB.getBuffer(), ECRAII().getEC()) {} +ELFFileBase<ELFT>::ELFFileBase(Kind K, MemoryBufferRef M) + : InputFile(K, M), ELFObj(MB.getBuffer(), ECRAII().getEC()) {} template <class ELFT> typename ELFFileBase<ELFT>::Elf_Sym_Range @@ -67,7 +67,7 @@ ELFFileBase<ELFT>::getNonLocalSymbols() { template <class ELFT> ObjectFile<ELFT>::ObjectFile(MemoryBufferRef M) - : ELFFileBase<ELFT>(Base::ObjectKind, Base::getStaticELFKind(), M) {} + : ELFFileBase<ELFT>(Base::ObjectKind, M) {} template <class ELFT> typename ObjectFile<ELFT>::Elf_Sym_Range ObjectFile<ELFT>::getLocalSymbols() { @@ -258,7 +258,7 @@ std::vector<MemoryBufferRef> ArchiveFile::getMembers() { template <class ELFT> SharedFile<ELFT>::SharedFile(MemoryBufferRef M) - : ELFFileBase<ELFT>(Base::SharedKind, Base::getStaticELFKind(), M) { + : ELFFileBase<ELFT>(Base::SharedKind, M) { AsNeeded = Config->AsNeeded; } |

