diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-05-16 21:06:31 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-05-16 21:06:31 +0000 |
| commit | 147036605e603009158db212ef7f604b8a3b56b4 (patch) | |
| tree | baef03b3996f3b5373eab577bfe656375bc9770c /lld/ELF/ScriptParser.h | |
| parent | 533a88a5c9376743eff66f656ef26879d2fc5eec (diff) | |
| download | bcm5719-llvm-147036605e603009158db212ef7f604b8a3b56b4.tar.gz bcm5719-llvm-147036605e603009158db212ef7f604b8a3b56b4.zip | |
Add `explicit`.
llvm-svn: 269703
Diffstat (limited to 'lld/ELF/ScriptParser.h')
| -rw-r--r-- | lld/ELF/ScriptParser.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lld/ELF/ScriptParser.h b/lld/ELF/ScriptParser.h index 7878bffee09..837f6c91508 100644 --- a/lld/ELF/ScriptParser.h +++ b/lld/ELF/ScriptParser.h @@ -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); |

