diff options
author | Zachary Turner <zturner@google.com> | 2016-08-29 19:58:14 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-08-29 19:58:14 +0000 |
commit | 54695a339f5d4f336865a564ab539ff1b5743223 (patch) | |
tree | 8613fa198a50f1f645644ecf602ec33a2159c606 /llvm/lib/Transforms | |
parent | 8b4a30584a8e34893d3ded7923479bfc89b45f40 (diff) | |
download | bcm5719-llvm-54695a339f5d4f336865a564ab539ff1b5743223.tar.gz bcm5719-llvm-54695a339f5d4f336865a564ab539ff1b5743223.zip |
Convert GetNameColonValue to return StringRefs.
StringExtractor::GetNameColonValue() looks for a substring of the
form "<name>:<value>" and returns <name> and <value> to the caller.
This results in two unnecessary string copies, since the name and
value are not translated in any way and simply returned as-is.
By converting this to return StringRefs we can get rid of hundreds
of string copies.
llvm-svn: 280000
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions