diff options
author | Rui Ueyama <ruiu@google.com> | 2016-06-29 08:01:32 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2016-06-29 08:01:32 +0000 |
commit | 93c9af425ed061b9ea0290253c40eb12e76ffe32 (patch) | |
tree | decee8c6f5cb61952201fa311aa1f94ce968ee5b /lld/ELF/ScriptParser.cpp | |
parent | 518cbc7cc3ac8fbaf45073a3d2ed1379c2e356ee (diff) | |
download | bcm5719-llvm-93c9af425ed061b9ea0290253c40eb12e76ffe32.tar.gz bcm5719-llvm-93c9af425ed061b9ea0290253c40eb12e76ffe32.zip |
Create Strings.cpp and move string manipulation functions to that file.
llvm-svn: 274109
Diffstat (limited to 'lld/ELF/ScriptParser.cpp')
-rw-r--r-- | lld/ELF/ScriptParser.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lld/ELF/ScriptParser.cpp b/lld/ELF/ScriptParser.cpp index cb8de972090..559ec1be0e3 100644 --- a/lld/ELF/ScriptParser.cpp +++ b/lld/ELF/ScriptParser.cpp @@ -161,18 +161,3 @@ size_t ScriptParserBase::getPos() { const char *Tok = Tokens[Pos - 1].data(); return StringRef(Begin, Tok - Begin).count('\n') + 1; } - -std::vector<uint8_t> ScriptParserBase::parseHex(StringRef S) { - std::vector<uint8_t> Hex; - while (!S.empty()) { - StringRef B = S.substr(0, 2); - S = S.substr(2); - uint8_t H; - if (B.getAsInteger(16, H)) { - setError("not a hexadecimal value: " + B); - return {}; - } - Hex.push_back(H); - } - return Hex; -} |