[lld] r269703 - Add `explicit`.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon May 16 14:06:31 PDT 2016
Author: ruiu
Date: Mon May 16 16:06:31 2016
New Revision: 269703
URL: http://llvm.org/viewvc/llvm-project?rev=269703&view=rev
Log:
Add `explicit`.
Modified:
lld/trunk/ELF/OutputSections.h
lld/trunk/ELF/ScriptParser.h
Modified: lld/trunk/ELF/OutputSections.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.h?rev=269703&r1=269702&r2=269703&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.h (original)
+++ lld/trunk/ELF/OutputSections.h Mon May 16 16:06:31 2016
@@ -476,7 +476,7 @@ class DynamicSection final : public Outp
std::vector<Entry> Entries;
public:
- DynamicSection(SymbolTable<ELFT> &SymTab);
+ explicit DynamicSection(SymbolTable<ELFT> &SymTab);
void finalize() override;
void writeTo(uint8_t *Buf) override;
Modified: lld/trunk/ELF/ScriptParser.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/ScriptParser.h?rev=269703&r1=269702&r2=269703&view=diff
==============================================================================
--- lld/trunk/ELF/ScriptParser.h (original)
+++ lld/trunk/ELF/ScriptParser.h Mon May 16 16:06:31 2016
@@ -19,8 +19,9 @@ namespace elf {
class ScriptParserBase {
public:
- ScriptParserBase(StringRef S) : Input(S), Tokens(tokenize(S)) {}
- ScriptParserBase(std::vector<StringRef> Tokens) : Input(""), Tokens(Tokens) {}
+ explicit ScriptParserBase(StringRef S) : Input(S), Tokens(tokenize(S)) {}
+ explicit ScriptParserBase(std::vector<StringRef> Tokens)
+ : Input(""), Tokens(Tokens) {}
protected:
void setError(const Twine &Msg);
More information about the llvm-commits
mailing list