diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2015-09-10 06:12:31 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2015-09-10 06:12:31 +0000 |
commit | e4405e949f7cdd701beb8a42a960f554276657b5 (patch) | |
tree | 17a7c18bb346aef237fc4dfc04bc03995c119b35 /llvm/lib/Support/GraphWriter.cpp | |
parent | 477121721bd8b103d2785f5fdf3f110e54dc0e54 (diff) | |
download | bcm5719-llvm-e4405e949f7cdd701beb8a42a960f554276657b5.tar.gz bcm5719-llvm-e4405e949f7cdd701beb8a42a960f554276657b5.zip |
[ADT] Switch a bunch of places in LLVM that were doing single-character
splits to actually use the single character split routine which does
less work, and in a debug build is *substantially* faster.
llvm-svn: 247245
Diffstat (limited to 'llvm/lib/Support/GraphWriter.cpp')
-rw-r--r-- | llvm/lib/Support/GraphWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/GraphWriter.cpp b/llvm/lib/Support/GraphWriter.cpp index cbf53493337..b80fbdb0d08 100644 --- a/llvm/lib/Support/GraphWriter.cpp +++ b/llvm/lib/Support/GraphWriter.cpp @@ -103,7 +103,7 @@ struct GraphSession { bool TryFindProgram(StringRef Names, std::string &ProgramPath) { raw_string_ostream Log(LogBuffer); SmallVector<StringRef, 8> parts; - Names.split(parts, "|"); + Names.split(parts, '|'); for (auto Name : parts) { if (ErrorOr<std::string> P = sys::findProgramByName(Name)) { ProgramPath = *P; |