diff options
author | Rui Ueyama <ruiu@google.com> | 2013-12-10 09:12:07 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2013-12-10 09:12:07 +0000 |
commit | 0bf13819025bfafbd756e56a8bda111aca13462b (patch) | |
tree | 75618190d3b03de711911eb930e7fc835cfd019e | |
parent | 3619f00ad52ba7828a3a92432baa0f322ba45c39 (diff) | |
download | bcm5719-llvm-0bf13819025bfafbd756e56a8bda111aca13462b.tar.gz bcm5719-llvm-0bf13819025bfafbd756e56a8bda111aca13462b.zip |
Add explicit keyword.
llvm-svn: 196898
-rw-r--r-- | lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp b/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp index 38d031f5dcd..4af4d7089c9 100644 --- a/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp +++ b/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp @@ -103,7 +103,7 @@ public: /// of PE/COFF files. class DOSStubChunk : public HeaderChunk { public: - DOSStubChunk(const PECOFFLinkingContext &ctx) + explicit DOSStubChunk(const PECOFFLinkingContext &ctx) : HeaderChunk(), _context(ctx) { // Minimum size of DOS stub is 64 bytes. The next block (PE header) needs to // be aligned on 8 byte boundary. @@ -211,7 +211,7 @@ public: } protected: - AtomChunk(Kind kind) : Chunk(kind) {} + explicit AtomChunk(Kind kind) : Chunk(kind) {} std::vector<AtomLayout *> _atomLayouts; }; @@ -221,7 +221,8 @@ protected: /// in memory) and 8 byte entry data size. class DataDirectoryChunk : public AtomChunk { public: - DataDirectoryChunk(const DefinedAtom *atom) : AtomChunk(kindDataDirectory) { + explicit DataDirectoryChunk(const DefinedAtom *atom) + : AtomChunk(kindDataDirectory) { if (atom) _atomLayouts.push_back(new (_alloc) AtomLayout(atom, 0, 0)); } @@ -325,7 +326,7 @@ class BaseRelocChunk : public SectionChunk { typedef std::map<uint64_t, std::vector<uint16_t>> PageOffsetT; public: - BaseRelocChunk(const File &linkedFile) + explicit BaseRelocChunk(const File &linkedFile) : SectionChunk(".reloc", characteristics), _file(linkedFile) {} void setContents(ChunkVectorT &chunks); |