summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/SubtargetFeature.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
commite4405e949f7cdd701beb8a42a960f554276657b5 (patch)
tree17a7c18bb346aef237fc4dfc04bc03995c119b35 /llvm/lib/MC/SubtargetFeature.cpp
parent477121721bd8b103d2785f5fdf3f110e54dc0e54 (diff)
downloadbcm5719-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/MC/SubtargetFeature.cpp')
-rw-r--r--llvm/lib/MC/SubtargetFeature.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/SubtargetFeature.cpp b/llvm/lib/MC/SubtargetFeature.cpp
index 76574e987cb..b642f17f0e7 100644
--- a/llvm/lib/MC/SubtargetFeature.cpp
+++ b/llvm/lib/MC/SubtargetFeature.cpp
@@ -56,7 +56,7 @@ static inline bool isEnabled(StringRef Feature) {
///
static void Split(std::vector<std::string> &V, StringRef S) {
SmallVector<StringRef, 3> Tmp;
- S.split(Tmp, ",", -1, false /* KeepEmpty */);
+ S.split(Tmp, ',', -1, false /* KeepEmpty */);
V.assign(Tmp.begin(), Tmp.end());
}
OpenPOWER on IntegriCloud