summaryrefslogtreecommitdiff
path: root/lib/MC/MCSectionMachO.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-09-10 06:12:31 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-09-10 06:12:31 +0000
commit6aaf0a68acfa16b2af1693b7cfcf41f77a4e2244 (patch)
tree169a5523db8f41341d05400e2b881d0301554f33 /lib/MC/MCSectionMachO.cpp
parent82c835626fc509771e3927e2ca4886cf0f4245db (diff)
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247245 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCSectionMachO.cpp')
-rw-r--r--lib/MC/MCSectionMachO.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MC/MCSectionMachO.cpp b/lib/MC/MCSectionMachO.cpp
index c9f15914e4b..879c6e5ff93 100644
--- a/lib/MC/MCSectionMachO.cpp
+++ b/lib/MC/MCSectionMachO.cpp
@@ -177,7 +177,7 @@ std::string MCSectionMachO::ParseSectionSpecifier(StringRef Spec, // In.
TAAParsed = false;
SmallVector<StringRef, 5> SplitSpec;
- Spec.split(SplitSpec, ",");
+ Spec.split(SplitSpec, ',');
// Remove leading and trailing whitespace.
auto GetEmptyOrTrim = [&SplitSpec](size_t Idx) -> StringRef {
return SplitSpec.size() > Idx ? SplitSpec[Idx].trim() : StringRef();
@@ -235,7 +235,7 @@ std::string MCSectionMachO::ParseSectionSpecifier(StringRef Spec, // In.
// The attribute list is a '+' separated list of attributes.
SmallVector<StringRef, 1> SectionAttrs;
- Attrs.split(SectionAttrs, "+", /*MaxSplit=*/-1, /*KeepEmpty=*/false);
+ Attrs.split(SectionAttrs, '+', /*MaxSplit=*/-1, /*KeepEmpty=*/false);
for (StringRef &SectionAttr : SectionAttrs) {
auto AttrDescriptorI = std::find_if(