projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31b8ab0
)
TargetParser.cpp: Fixup -- StringRef::startswith() is better here. NFC.
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Thu, 19 Nov 2015 15:42:52 +0000
(15:42 +0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Thu, 19 Nov 2015 15:42:52 +0000
(15:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253570
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/TargetParser.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/TargetParser.cpp
b/lib/Support/TargetParser.cpp
index
371ae35
..
75e4b4b
100644
(file)
--- a/
lib/Support/TargetParser.cpp
+++ b/
lib/Support/TargetParser.cpp
@@
-331,7
+331,7
@@
StringRef llvm::ARM::getArchExtName(unsigned ArchExtKind) {
}
const char *llvm::ARM::getArchExtFeature(StringRef ArchExt) {
- if (ArchExt.s
ubstr(0, 2) == "no"
) {
+ if (ArchExt.s
tartswith("no")
) {
StringRef ArchExtBase(ArchExt.substr(2));
for (const auto AE : ARCHExtNames) {
if (AE.NegFeature && ArchExtBase == AE.getName())