diff options
| author | Rui Ueyama <ruiu@google.com> | 2015-09-30 02:06:17 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2015-09-30 02:06:17 +0000 |
| commit | 294b136db40c7a610e48bf1a4b2cc7298d91ce01 (patch) | |
| tree | a85777e429b82028ad0ed3feedda2e767da836ba | |
| parent | 75df7187f33fce19265aff97c000023f8f5b8504 (diff) | |
| download | bcm5719-llvm-294b136db40c7a610e48bf1a4b2cc7298d91ce01.tar.gz bcm5719-llvm-294b136db40c7a610e48bf1a4b2cc7298d91ce01.zip | |
Remove `explicit` from constructors that take more than one parameter.
llvm-svn: 248873
| -rw-r--r-- | lld/ELF/InputFiles.h | 8 | ||||
| -rw-r--r-- | lld/ELF/Symbols.h | 15 |
2 files changed, 11 insertions, 12 deletions
diff --git a/lld/ELF/InputFiles.h b/lld/ELF/InputFiles.h index 4b0625a3b0c..027cb0ea0a7 100644 --- a/lld/ELF/InputFiles.h +++ b/lld/ELF/InputFiles.h @@ -41,7 +41,7 @@ public: StringRef getName() const { return MB.getBufferIdentifier(); } protected: - explicit InputFile(Kind K, MemoryBufferRef M) : MB(M), FileKind(K) {} + InputFile(Kind K, MemoryBufferRef M) : MB(M), FileKind(K) {} MemoryBufferRef MB; private: @@ -52,7 +52,7 @@ enum ELFKind { ELF32LEKind, ELF32BEKind, ELF64LEKind, ELF64BEKind }; class ELFFileBase : public InputFile { public: - explicit ELFFileBase(Kind K, ELFKind EKind, MemoryBufferRef M) + ELFFileBase(Kind K, ELFKind EKind, MemoryBufferRef M) : InputFile(K, M), EKind(EKind) {} static bool classof(const InputFile *F) { Kind K = F->kind(); @@ -71,7 +71,7 @@ protected: // .o file. class ObjectFileBase : public ELFFileBase { public: - explicit ObjectFileBase(ELFKind EKind, MemoryBufferRef M) + ObjectFileBase(ELFKind EKind, MemoryBufferRef M) : ELFFileBase(ObjectKind, EKind, M) {} static bool classof(const InputFile *F) { return F->kind() == ObjectKind; } @@ -185,7 +185,7 @@ private: // .so file. class SharedFileBase : public ELFFileBase { public: - explicit SharedFileBase(ELFKind EKind, MemoryBufferRef M) + SharedFileBase(ELFKind EKind, MemoryBufferRef M) : ELFFileBase(SharedKind, EKind, M) {} static bool classof(const InputFile *F) { return F->kind() == SharedKind; } }; diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h index f7917331bdf..fd928baac6c 100644 --- a/lld/ELF/Symbols.h +++ b/lld/ELF/Symbols.h @@ -149,7 +149,7 @@ protected: typedef typename Base::Elf_Sym Elf_Sym; public: - explicit Defined(Kind K, StringRef N, const Elf_Sym &Sym) + Defined(Kind K, StringRef N, const Elf_Sym &Sym) : ELFSymbolBody<ELFT>(K, N, Sym) {} static bool classof(const SymbolBody *S) { return S->isDefined(); } @@ -162,7 +162,7 @@ template <class ELFT> class DefinedAbsolute : public Defined<ELFT> { public: static Elf_Sym IgnoreUndef; - explicit DefinedAbsolute(StringRef N, const Elf_Sym &Sym) + DefinedAbsolute(StringRef N, const Elf_Sym &Sym) : Defined<ELFT>(Base::DefinedAbsoluteKind, N, Sym) {} static bool classof(const SymbolBody *S) { @@ -180,7 +180,7 @@ template <class ELFT> class DefinedCommon : public Defined<ELFT> { public: typedef typename std::conditional<ELFT::Is64Bits, uint64_t, uint32_t>::type uintX_t; - explicit DefinedCommon(StringRef N, const Elf_Sym &Sym) + DefinedCommon(StringRef N, const Elf_Sym &Sym) : Defined<ELFT>(Base::DefinedCommonKind, N, Sym) { MaxAlignment = Sym.st_value; } @@ -203,8 +203,7 @@ template <class ELFT> class DefinedRegular : public Defined<ELFT> { typedef typename Base::Elf_Sym Elf_Sym; public: - explicit DefinedRegular(StringRef N, const Elf_Sym &Sym, - InputSection<ELFT> &Section) + DefinedRegular(StringRef N, const Elf_Sym &Sym, InputSection<ELFT> &Section) : Defined<ELFT>(Base::DefinedRegularKind, N, Sym), Section(Section) {} static bool classof(const SymbolBody *S) { @@ -219,8 +218,8 @@ template <class ELFT> class DefinedSynthetic : public Defined<ELFT> { public: typedef typename Base::Elf_Sym Elf_Sym; - explicit DefinedSynthetic(StringRef N, const Elf_Sym &Sym, - OutputSection<ELFT> &Section) + DefinedSynthetic(StringRef N, const Elf_Sym &Sym, + OutputSection<ELFT> &Section) : Defined<ELFT>(Base::DefinedSyntheticKind, N, Sym), Section(Section) {} static bool classof(const SymbolBody *S) { @@ -238,7 +237,7 @@ template <class ELFT> class Undefined : public ELFSymbolBody<ELFT> { public: static Elf_Sym Synthetic; - explicit Undefined(StringRef N, const Elf_Sym &Sym) + Undefined(StringRef N, const Elf_Sym &Sym) : ELFSymbolBody<ELFT>(Base::UndefinedKind, N, Sym) {} static bool classof(const SymbolBody *S) { |

