[lld] r196898 - Add explicit keyword.
Rui Ueyama
ruiu at google.com
Tue Dec 10 01:12:07 PST 2013
Author: ruiu
Date: Tue Dec 10 03:12:07 2013
New Revision: 196898
URL: http://llvm.org/viewvc/llvm-project?rev=196898&view=rev
Log:
Add explicit keyword.
Modified:
lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
Modified: lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp?rev=196898&r1=196897&r2=196898&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp Tue Dec 10 03:12:07 2013
@@ -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 SectionChu
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);
More information about the llvm-commits
mailing list